Class Object2CharSortedMaps.EmptySortedMap<K>

  • All Implemented Interfaces:
    Function<K,​java.lang.Character>, Object2CharFunction<K>, Object2CharMap<K>, Object2CharSortedMap<K>, java.io.Serializable, java.lang.Cloneable, java.util.function.Function<K,​java.lang.Character>, java.util.function.ToIntFunction<K>, java.util.Map<K,​java.lang.Character>, java.util.SortedMap<K,​java.lang.Character>
    Enclosing class:
    Object2CharSortedMaps

    public static class Object2CharSortedMaps.EmptySortedMap<K>
    extends Object2CharMaps.EmptyMap<K>
    implements Object2CharSortedMap<K>, java.io.Serializable, java.lang.Cloneable
    An immutable class representing an empty type-specific sorted map.

    This class may be useful to implement your own in case you subclass a type-specific sorted map.

    See Also:
    Serialized Form
    • Method Detail

      • comparator

        public java.util.Comparator<? super K> comparator()
        Description copied from interface: Object2CharSortedMap
        Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
        Specified by:
        comparator in interface Object2CharSortedMap<K>
        Specified by:
        comparator in interface java.util.SortedMap<K,​java.lang.Character>
        See Also:
        SortedMap.comparator()
      • entrySet

        @Deprecated
        public ObjectSortedSet<java.util.Map.Entry<K,​java.lang.Character>> entrySet()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns a sorted-set view of the mappings contained in this map.
        Specified by:
        entrySet in interface java.util.Map<K,​java.lang.Character>
        Specified by:
        entrySet in interface Object2CharMap<K>
        Specified by:
        entrySet in interface Object2CharSortedMap<K>
        Specified by:
        entrySet in interface java.util.SortedMap<K,​java.lang.Character>
        Returns:
        a sorted-set view of the mappings contained in this map.
        See Also:
        SortedMap.entrySet()
      • subMap

        public Object2CharSortedMap<K> subMap​(K from,
                                              K to)
        Description copied from interface: Object2CharSortedMap
        Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
        Specified by:
        subMap in interface Object2CharSortedMap<K>
        Specified by:
        subMap in interface java.util.SortedMap<K,​java.lang.Character>
        See Also:
        SortedMap.subMap(Object,Object)
      • headMap

        public Object2CharSortedMap<K> headMap​(K to)
        Description copied from interface: Object2CharSortedMap
        Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
        Specified by:
        headMap in interface Object2CharSortedMap<K>
        Specified by:
        headMap in interface java.util.SortedMap<K,​java.lang.Character>
        See Also:
        SortedMap.headMap(Object)
      • tailMap

        public Object2CharSortedMap<K> tailMap​(K from)
        Description copied from interface: Object2CharSortedMap
        Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
        Specified by:
        tailMap in interface Object2CharSortedMap<K>
        Specified by:
        tailMap in interface java.util.SortedMap<K,​java.lang.Character>
        See Also:
        SortedMap.tailMap(Object)
      • firstKey

        public K firstKey()
        Specified by:
        firstKey in interface java.util.SortedMap<K,​java.lang.Character>
      • lastKey

        public K lastKey()
        Specified by:
        lastKey in interface java.util.SortedMap<K,​java.lang.Character>