Class DocumentPubItem.Id

java.lang.Object
com.priint.pubserver.pubitem.PubItem.Id
com.priint.pubserver.pubitem.DocumentPubItem.Id
Enclosing class:
DocumentPubItem

public static class DocumentPubItem.Id extends PubItem.Id
Represents the ID of a document publication item.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Id(String value)
    Constructs a new ID with the specified value.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this ID is equal to the specified object.
    int
    Returns the hash code value for this ID.
    of(String value)
    Creates a new ID with the specified value.
    Returns a string representation of this ID.

    Methods inherited from class com.priint.pubserver.pubitem.PubItem.Id

    getValue

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Id

      public Id(String value)
      Constructs a new ID with the specified value.
      Parameters:
      value - the value of the ID
  • Method Details

    • of

      public static DocumentPubItem.Id of(String value)
      Creates a new ID with the specified value.
      Parameters:
      value - the value of the ID
      Returns:
      the new ID
    • equals

      public boolean equals(Object o)
      Checks if this ID is equal to the specified object.
      Overrides:
      equals in class PubItem.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:
      hashCode in class PubItem.Id
      Returns:
      the hash code value for this ID
    • toString

      public String toString()
      Returns a string representation of this ID.
      Overrides:
      toString in class PubItem.Id
      Returns:
      a string representation of this ID