Package adams.core

Class WrapperHashSet.Wrapper

    • Field Detail

      • m_Payload

        protected Object m_Payload
        the payload object.
    • Constructor Detail

      • Wrapper

        public Wrapper​(Object payload)
        Initializes the wrapper.
        Parameters:
        payload - the payload to wrap around
    • Method Detail

      • getPayload

        public Object getPayload()
        Returns the stored object.
        Returns:
        the payload
      • hashCode

        public int hashCode()
        Returns the hashcode of the payload object.
        Overrides:
        hashCode in class Object
        Returns:
        the hashcode of the payload
      • equals

        public boolean equals​(Object o)
        Compares the hashcodes of the payloads.
        Overrides:
        equals in class Object
        Parameters:
        o - the object to compare with
        Returns:
        true if the hashcodes of the payloads are the same
      • toString

        public String toString()
        Returns the string representation of the payload.
        Overrides:
        toString in class Object
        Returns:
        the string representation of the payload