Class AbstractUniquePojo<ID extends java.io.Serializable>

    • Constructor Detail

      • AbstractUniquePojo

        protected AbstractUniquePojo()
        The default constructor.
      • AbstractUniquePojo

        protected AbstractUniquePojo​(ID id)
        Constructs an object with the given id.
        Parameters:
        id - the ID of the object to construct
      • AbstractUniquePojo

        protected AbstractUniquePojo​(UniquePojo<ID> that)
        Constructs a copy of the given object.
        Parameters:
        that - the object to copy
      • AbstractUniquePojo

        public AbstractUniquePojo​(UniqueObject<ID> that)
        Parameters:
        that -
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • equalsWithNullCheck

        public boolean equalsWithNullCheck​(java.lang.Object value1,
                                           java.lang.Object value2)
        Parameters:
        value1 -
        value2 -
        Returns:
      • getId

        public ID getId()
        Returns the ID of the object.
        Specified by:
        getId in interface UniqueObject<ID extends java.io.Serializable>
        Returns:
        the unique id of the object.
      • hashCode

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

        public void setId​(ID id)
        Specified by:
        setId in interface UniqueObject<ID extends java.io.Serializable>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object