@ProviderType public class VersionableName extends Object implements Comparable<VersionableName>, Serializable
Modifier and Type | Field and Description |
---|---|
static VersionableName |
UNKNOWN |
Constructor and Description |
---|
VersionableName(String name) |
VersionableName(String name,
Set<String> versions) |
VersionableName(String name,
String version) |
Modifier and Type | Method and Description |
---|---|
void |
addVersion(String version) |
int |
compareTo(VersionableName versionableName) |
boolean |
equals(Object obj) |
String |
getName() |
Set<String> |
getVersions() |
int |
hashCode() |
String |
toString() |
public static final VersionableName UNKNOWN
public VersionableName(String name)
public VersionableName(String name, Set<String> versions)
public VersionableName(String name, String version)
public void addVersion(String version)
public int compareTo(VersionableName versionableName)
compareTo
in interface Comparable<VersionableName>
public boolean equals(Object obj)
equals
in class Object
public String getName()
public Set<String> getVersions()
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object