public class VersionedParameter extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
private String |
name
The name of the parameter.
|
private static long |
serialVersionUID |
private int |
version
The version of the parameter.
|
Constructor and Description |
---|
VersionedParameter()
Used by Hibernate to create an instance.
|
VersionedParameter(String name,
int version)
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
Check if this object is equal to another
VersionedParameter
object. |
String |
getName()
Get the parameter name.
|
int |
getVersion()
Get the parameter version.
|
int |
hashCode()
Calculate the hash code for the object.
|
(package private) void |
setName(String name) |
(package private) void |
setVersion(int version) |
String |
toString()
Convert the value to a string.
|
private static final long serialVersionUID
private String name
private int version
VersionedParameter()
public VersionedParameter(String name, int version)
public String getName()
void setName(String name)
public int getVersion()
void setVersion(int version)
public boolean equals(Object o)
VersionedParameter
object. They are considered to be the same if the have the same
name and version.public int hashCode()