Interface UnmodMap.UnEntry<K,​V>

  • All Superinterfaces:
    java.util.Map.Entry<K,​V>
    All Known Implementing Classes:
    Tuple2
    Enclosing interface:
    UnmodMap<K,​V>

    public static interface UnmodMap.UnEntry<K,​V>
    extends java.util.Map.Entry<K,​V>
    A map entry (key-value pair). The UnmodMap.entrySet method returns a collection-view of the map, whose elements are of this class. The only way to obtain a reference to a map entry is from the iterator of this collection-view.
    See Also:
    UnmodMap.entrySet()
    • Method Detail

      • entryIterToUnEntryUnIter

        static <K,​V> UnmodIterator<UnmodMap.UnEntry<K,​V>> entryIterToUnEntryUnIter​(java.util.Iterator<java.util.Map.Entry<K,​V>> innerIter)
      • entryIterToUnEntrySortedUnIter

        static <K,​V> UnmodSortedIterator<UnmodMap.UnEntry<K,​V>> entryIterToUnEntrySortedUnIter​(java.util.Iterator<java.util.Map.Entry<K,​V>> innerIter)
      • setValue

        @Deprecated
        default V setValue​(V value)
        Deprecated.
        Not compatible with immutability - use ImMap.assoc(Object, Object) instead because it returns a new map.
        Specified by:
        setValue in interface java.util.Map.Entry<K,​V>