@Value.Immutable(copy=false)
public abstract class VersionComponents
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.util.regex.Pattern |
MAJOR_MINOR_BUILD |
| Constructor and Description |
|---|
VersionComponents() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
atLeast(int major,
int minor,
int build) |
int |
getBuild() |
int |
getMajor() |
int |
getMinor() |
abstract java.lang.String |
getNumber() |
boolean |
isEmpty() |
static VersionComponents |
of() |
static VersionComponents |
of(int major,
int minor) |
static VersionComponents |
of(int major,
int minor,
int build) |
static VersionComponents |
of(java.lang.String number) |
public static VersionComponents of()
public static VersionComponents of(int major, int minor)
public static VersionComponents of(int major, int minor, int build)
public static VersionComponents of(java.lang.String number)
public boolean atLeast(int major,
int minor,
int build)
@Value.Default @Value.Auxiliary public int getBuild()
@Value.Default @Value.Auxiliary public int getMajor()
@Value.Default @Value.Auxiliary public int getMinor()
public abstract java.lang.String getNumber()
@Value.Derived @Value.Auxiliary public boolean isEmpty()