Class MapTuple<R>

    • Constructor Detail

      • MapTuple

        public MapTuple​(Map<R,​Object> values)
        Create a MapTuple backed by the given Map.
        Parameters:
        values - Backing Map.
      • MapTuple

        public MapTuple()
        Create a MapTuple backed by a new HashMap.
    • Method Detail

      • put

        public void put​(R reference,
                        Object value)
        Description copied from interface: Tuple
        Put a value into this Tuple with the given reference.
        Specified by:
        put in interface Tuple<R>
        Parameters:
        reference - Value reference.
        value - Value to put.
      • get

        public Object get​(R reference)
        Description copied from interface: Tuple
        Get a value from this Tuple with the given reference.
        Specified by:
        get in interface Tuple<R>
        Parameters:
        reference - Value reference.
        Returns:
        Value or null if not present.
      • setValues

        public void setValues​(Map<R,​Object> values)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object