Class GroupingImpl<K,​V>

    • Field Detail

      • key

        private final K key
      • values

        private final java.util.Collection<V> values
    • Constructor Detail

      • GroupingImpl

        GroupingImpl​(K key,
                     java.util.Collection<V> values)
    • Method Detail

      • toString

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

        public int hashCode()

        Computes hash code consistent with Map.Entry.hashCode().

        Specified by:
        hashCode in interface java.util.Map.Entry<K,​V>
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Map.Entry<K,​V>
        Overrides:
        equals in class java.lang.Object
      • getValue

        public Enumerable<V> getValue()
        Specified by:
        getValue in interface java.util.Map.Entry<K,​V>
      • setValue

        public Enumerable<V> setValue​(Enumerable<V> value)
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>
      • getKey

        public K getKey()
        Description copied from interface: Grouping
        Gets the key of this Grouping.
        Specified by:
        getKey in interface Grouping<K,​V>
        Specified by:
        getKey in interface java.util.Map.Entry<K,​V>