|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.util.Version
public class Version
Value object to represent a Version consisting of major, minor and bugfix part.
| Constructor Summary | |
|---|---|
Version(int... parts)
Creates a new Version from the given integer values. |
|
| Method Summary | |
|---|---|
int |
compareTo(Version that)
|
boolean |
equals(Object obj)
|
int |
hashCode()
|
boolean |
is(Version version)
Returns whether the current Version is the same as the given one. |
boolean |
isGreaterThan(Version version)
Returns whether the current Version is greater (newer) than the given one. |
boolean |
isGreaterThanOrEqualTo(Version version)
Returns whether the current Version is greater (newer) or the same as the given one. |
boolean |
isLessThan(Version version)
Returns whether the current Version is less (older) than the given one. |
boolean |
isLessThanOrEqualTo(Version version)
Returns whether the current Version is less (older) or equal to the current one. |
static Version |
parse(String version)
Parses the given string representation of a version into a Version object. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Version(int... parts)
Version from the given integer values. At least one value has to be given but a maximum of 4.
parts - must not be null or empty.| Method Detail |
|---|
public static Version parse(String version)
Version object.
version - must not be null or empty.
public boolean isGreaterThan(Version version)
Version is greater (newer) than the given one.
version -
public boolean isGreaterThanOrEqualTo(Version version)
Version is greater (newer) or the same as the given one.
version -
public boolean is(Version version)
Version is the same as the given one.
version -
public boolean isLessThan(Version version)
Version is less (older) than the given one.
version -
public boolean isLessThanOrEqualTo(Version version)
Version is less (older) or equal to the current one.
version -
public int compareTo(Version that)
compareTo in interface Comparable<Version>public boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Spring Data Core | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||