| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int | |
| private final int | |
| private final int | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(VersionInfo
the object to be compared. o)Implements java. Compares this object with the specified object for order. |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public final int | |
| public final int | |
| public final int | |
| public int | |
| public static VersionInfo | |
| public String |
| buildNumber | back to summary |
|---|---|
| private final int buildNumber | |
| majorVersion | back to summary |
|---|---|
| private final int majorVersion | |
| minorVersion | back to summary |
|---|---|
| private final int minorVersion | |
| release | back to summary |
|---|---|
| private final int release | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| VersionInfo | back to summary |
|---|---|
| public VersionInfo(int major, int minor) | |
| VersionInfo | back to summary |
|---|---|
| public VersionInfo(int major, int minor, int release, int build) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(VersionInfo o) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getBuildNumber | back to summary |
|---|---|
| public final int getBuildNumber() | |
| getMajorVersion | back to summary |
|---|---|
| public final int getMajorVersion() | |
| getMinorVersion | back to summary |
|---|---|
| public final int getMinorVersion() | |
| getRelease | back to summary |
|---|---|
| public final int getRelease() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| parse | back to summary |
|---|---|
| public static VersionInfo parse(String version) throws NumberFormatException Parses a version string - assumed to contain at most 4 non-negative components separated by a '.'. If less than 4 components are found, then the rest are assumed to be zero. If more than 4 components found, then only the 1st ones are parsed.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |