Class IdentifiableModel<T>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object object)
      Check if the given object equals to this object.
      T getId()
      Gets the id.
      int hashCode()
      Return the hash code of this object.
      IdentifiableModel<T> setId​(T id)
      Sets the id.
      • Methods inherited from class java.lang.Object

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

      • IdentifiableModel

        public IdentifiableModel()
    • Method Detail

      • getId

        public T getId()
        Gets the id.
        Returns:
        the id
      • equals

        public boolean equals​(java.lang.Object object)
        Check if the given object equals to this object.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        object - the object to compare
        Returns:
        true if given object equals to this object, false otherwise
      • hashCode

        public int hashCode()
        Return the hash code of this object.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code