Class PubItem.Id

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Id​(java.lang.String value)
      Constructs a new Id object with the specified value.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      java.lang.String getValue()
      Returns the value of the Id.
      int hashCode()  
      java.lang.String toString()
      Returns a string representation of the Id.
      • Methods inherited from class java.lang.Object

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

      • Id

        protected Id​(java.lang.String value)
        Constructs a new Id object with the specified value.
        Parameters:
        value - the value of the Id
        Throws:
        java.lang.IllegalArgumentException - if the value is null or empty
    • Method Detail

      • getValue

        public java.lang.String getValue()
        Returns the value of the Id.
        Returns:
        the value of the Id
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Returns a string representation of the Id.
        Overrides:
        toString in class java.lang.Object
        Returns:
        a string representation of the Id