Class Byte2ShortSortedMaps.EmptySortedMap

  • All Implemented Interfaces:
    Byte2ShortFunction, Byte2ShortMap, Byte2ShortSortedMap, Function<java.lang.Byte,​java.lang.Short>, java.io.Serializable, java.lang.Cloneable, java.util.function.Function<java.lang.Byte,​java.lang.Short>, java.util.function.IntUnaryOperator, java.util.Map<java.lang.Byte,​java.lang.Short>, java.util.SortedMap<java.lang.Byte,​java.lang.Short>
    Enclosing class:
    Byte2ShortSortedMaps

    public static class Byte2ShortSortedMaps.EmptySortedMap
    extends Byte2ShortMaps.EmptyMap
    implements Byte2ShortSortedMap, 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 ByteComparator comparator()
        Description copied from interface: Byte2ShortSortedMap
        Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
        Specified by:
        comparator in interface Byte2ShortSortedMap
        Specified by:
        comparator in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
        See Also:
        SortedMap.comparator()
      • entrySet

        @Deprecated
        public ObjectSortedSet<java.util.Map.Entry<java.lang.Byte,​java.lang.Short>> 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 Byte2ShortMap
        Specified by:
        entrySet in interface Byte2ShortSortedMap
        Specified by:
        entrySet in interface java.util.Map<java.lang.Byte,​java.lang.Short>
        Specified by:
        entrySet in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
        Returns:
        a sorted-set view of the mappings contained in this map.
        See Also:
        SortedMap.entrySet()
      • keySet

        public ByteSortedSet keySet()
        Description copied from interface: Byte2ShortMap
        Specified by:
        keySet in interface Byte2ShortMap
        Specified by:
        keySet in interface Byte2ShortSortedMap
        Specified by:
        keySet in interface java.util.Map<java.lang.Byte,​java.lang.Short>
        Specified by:
        keySet in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
        Overrides:
        keySet in class Byte2ShortMaps.EmptyMap
        Returns:
        a set view of the keys contained in this map.
        See Also:
        Map.keySet()
      • subMap

        public Byte2ShortSortedMap subMap​(byte from,
                                          byte to)
        Description copied from interface: Byte2ShortSortedMap
        Returns a view of the portion of this sorted map whose keys range from fromKey, inclusive, to toKey, exclusive.
        Specified by:
        subMap in interface Byte2ShortSortedMap
        See Also:
        SortedMap.subMap(Object,Object)
      • headMap

        @Deprecated
        public Byte2ShortSortedMap headMap​(java.lang.Byte oto)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        headMap in interface Byte2ShortSortedMap
        Specified by:
        headMap in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
      • tailMap

        @Deprecated
        public Byte2ShortSortedMap tailMap​(java.lang.Byte ofrom)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        tailMap in interface Byte2ShortSortedMap
        Specified by:
        tailMap in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
      • subMap

        @Deprecated
        public Byte2ShortSortedMap subMap​(java.lang.Byte ofrom,
                                          java.lang.Byte oto)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        subMap in interface Byte2ShortSortedMap
        Specified by:
        subMap in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
      • firstKey

        @Deprecated
        public java.lang.Byte firstKey()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        firstKey in interface Byte2ShortSortedMap
        Specified by:
        firstKey in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>
      • lastKey

        @Deprecated
        public java.lang.Byte lastKey()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        lastKey in interface Byte2ShortSortedMap
        Specified by:
        lastKey in interface java.util.SortedMap<java.lang.Byte,​java.lang.Short>