Class VersionedObjectStore.Version
- java.lang.Object
-
- hudson.plugins.project_inheritance.util.VersionedObjectStore.Version
-
- All Implemented Interfaces:
Serializable
,Comparable<Object>
- Enclosing class:
- VersionedObjectStore
public static class VersionedObjectStore.Version extends Object implements Serializable, Comparable<Object>
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(Object obj)
boolean
equals(Object obj)
String
getDescription()
String
getLocalTimestamp()
boolean
getStability()
String
getStabilityString()
String
getUsername()
Returns the name of the user that created this version.int
hashCode()
void
setDescription(String description)
void
setStability(boolean stable)
void
setUsername(String user)
String
toString()
String
toString(int truncateDescription)
-
-
-
Field Detail
-
id
public final Long id
This field is the unique ID of this class. It is the only field that is considered for hashing, comparing and equality checks.
-
timestamp
public final long timestamp
This field stores the creation date of this particular version. Do note that two Versions with the same ID but differing timestamps are still treated as equal!
-
-
Constructor Detail
-
Version
public Version(Long id)
-
-
Method Detail
-
toString
public String toString(int truncateDescription)
-
getStability
public boolean getStability()
-
setStability
public void setStability(boolean stable)
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
getLocalTimestamp
public String getLocalTimestamp()
-
getStabilityString
public String getStabilityString()
-
getUsername
public String getUsername()
Returns the name of the user that created this version.- Returns:
- a string containing a username. May be empty, but never null.
-
setUsername
public void setUsername(String user)
-
compareTo
public int compareTo(Object obj)
- Specified by:
compareTo
in interfaceComparable<Object>
-
-