public class Version extends Object implements Comparable<Version>
| Constructor and Description |
|---|
Version(short major,
short minor,
short patch,
short build) |
Version(String version) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Version other) |
boolean |
equals(Object other) |
short |
getBuild() |
short |
getMajor() |
short |
getMinor() |
short |
getPatch() |
String |
getVersion() |
int |
hashCode() |
String |
toString() |
public Version(String version)
public Version(short major,
short minor,
short patch,
short build)
public short getMajor()
public short getMinor()
public short getPatch()
public short getBuild()
public String getVersion()
public int compareTo(Version other)
compareTo in interface Comparable<Version>Copyright © 2017–2021 The Apache Software Foundation. All rights reserved.