Package net.anwiba.commons.version
Class Version
- java.lang.Object
-
- net.anwiba.commons.version.Version
-
- All Implemented Interfaces:
java.io.Serializable,IVersion
public class Version extends java.lang.Object implements IVersion
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.time.ZonedDateTimedefaultDatestatic IVersionDUMMY
-
Constructor Summary
Constructors Constructor Description Version(int major, int minor, ReleaseState releaseState, int step, ProductState productState, java.time.ZonedDateTime date, int buildCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)intgetBuildCount()java.time.ZonedDateTimegetDate()intgetMajor()intgetMinor()ProductStategetProductState()ReleaseStategetReleaseState()intgetStep()inthashCode()static IVersionof(java.lang.String string)
-
-
-
Field Detail
-
defaultDate
public static final java.time.ZonedDateTime defaultDate
-
DUMMY
public static final IVersion DUMMY
-
-
Constructor Detail
-
Version
public Version(int major, int minor, ReleaseState releaseState, int step, ProductState productState, java.time.ZonedDateTime date, int buildCount)
-
-
Method Detail
-
of
public static IVersion of(java.lang.String string)
-
getReleaseState
public ReleaseState getReleaseState()
- Specified by:
getReleaseStatein interfaceIVersion
-
getProductState
public ProductState getProductState()
- Specified by:
getProductStatein interfaceIVersion
-
getBuildCount
public int getBuildCount()
- Specified by:
getBuildCountin interfaceIVersion
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-