public static final class PlatformInfo.Version extends Object implements VersionInfo
Constructor and Description |
---|
Version(int major,
int minor,
int fix,
boolean snapshot,
long buildTime) |
Version(String version)
Construct a Version instance by parsing the version string, in the format returned by
toString() . |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object other) |
boolean |
equals(Object obj) |
long |
getBuildTime() |
int |
getFix() |
int |
getMajor() |
int |
getMinor() |
int |
hashCode() |
boolean |
isSnapshot() |
String |
toString() |
public Version(int major, int minor, int fix, boolean snapshot, long buildTime)
public Version(@Nullable String version)
toString()
.version
- The version string. If the version is null
, all versions would be
0
.public int getMajor()
public int getMinor()
public int getFix()
public boolean isSnapshot()
public long getBuildTime()
public int compareTo(Object other)
compareTo
in interface Comparable<Object>
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.