public class Extension
extends java.lang.Object
Constructor and Description |
---|
Extension(java.lang.String s)
Will try to find both name and version in the string, separated by a '#' character.
|
Extension(java.lang.String n,
java.lang.String v)
Builds a new extension with a name and a version
|
Modifier and Type | Method and Description |
---|---|
static java.util.Set<Extension> |
deserialize(java.lang.String exs) |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getName() |
java.lang.String |
getVersion() |
int |
hashCode() |
java.lang.String |
serialize() |
java.lang.String |
toString() |
public Extension(java.lang.String n, java.lang.String v)
n
- The namev
- The versionpublic Extension(java.lang.String s)
version
to an empty string.s
- The String containing the name and optionally the version.public java.lang.String getName()
public java.lang.String getVersion()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String serialize()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static java.util.Set<Extension> deserialize(java.lang.String exs)