Package com.priint.pubserver.pubitem
Class DocumentPubItem.Id
java.lang.Object
com.priint.pubserver.pubitem.PubItem.Id
com.priint.pubserver.pubitem.DocumentPubItem.Id
- Enclosing class:
- DocumentPubItem
Represents the ID of a document publication item.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this ID is equal to the specified object.inthashCode()Returns the hash code value for this ID.static DocumentPubItem.IdCreates a new ID with the specified value.toString()Returns a string representation of this ID.Methods inherited from class com.priint.pubserver.pubitem.PubItem.Id
getValue
-
Constructor Details
-
Id
Constructs a new ID with the specified value.- Parameters:
value- the value of the ID
-
-
Method Details
-
of
Creates a new ID with the specified value.- Parameters:
value- the value of the ID- Returns:
- the new ID
-
equals
Checks if this ID is equal to the specified object.- Overrides:
equalsin classPubItem.Id- Parameters:
o- the object to compare- Returns:
- true if the object is equal to this ID, false otherwise
-
hashCode
public int hashCode()Returns the hash code value for this ID.- Overrides:
hashCodein classPubItem.Id- Returns:
- the hash code value for this ID
-
toString
Returns a string representation of this ID.- Overrides:
toStringin classPubItem.Id- Returns:
- a string representation of this ID
-