public class VersionID extends Object implements Comparable
Constructor and Description |
---|
VersionID(String str)
Creates a VersionID object
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Object o) |
boolean |
equals(Object o)
Compares if two version IDs are equal
|
boolean |
isGreaterThan(VersionID vid) |
boolean |
isGreaterThanOrEqual(VersionID vid) |
boolean |
isPrefixMatch(VersionID vid)
Checks if 'this' is a prefix of vid
|
boolean |
isSimpleVersion()
Returns true if no flags are set
|
boolean |
match(VersionID vid)
Match 'this' versionID against vid.
|
String |
toString()
Show it as a string
|
public VersionID(String str)
public boolean isSimpleVersion()
public boolean match(VersionID vid)
public boolean equals(Object o)
public boolean isGreaterThan(VersionID vid)
public boolean isGreaterThanOrEqual(VersionID vid)
public boolean isPrefixMatch(VersionID vid)
public int compareTo(Object o)
compareTo
in interface Comparable
Copyright © 2005–2016 Sun Microsystems. All rights reserved.