Class Int2IntSortedMaps.SynchronizedSortedMap

  • All Implemented Interfaces:
    Function<java.lang.Integer,​java.lang.Integer>, Int2IntFunction, Int2IntMap, Int2IntSortedMap, java.io.Serializable, java.util.function.Function<java.lang.Integer,​java.lang.Integer>, java.util.function.IntUnaryOperator, java.util.Map<java.lang.Integer,​java.lang.Integer>, java.util.SortedMap<java.lang.Integer,​java.lang.Integer>
    Enclosing class:
    Int2IntSortedMaps

    public static class Int2IntSortedMaps.SynchronizedSortedMap
    extends Int2IntMaps.SynchronizedMap
    implements Int2IntSortedMap, java.io.Serializable
    A synchronized wrapper class for sorted maps.
    See Also:
    Serialized Form
    • Method Detail

      • comparator

        public IntComparator comparator()
        Description copied from interface: Int2IntSortedMap
        Returns the comparator associated with this sorted set, or null if it uses its keys' natural ordering.
        Specified by:
        comparator in interface Int2IntSortedMap
        Specified by:
        comparator in interface java.util.SortedMap<java.lang.Integer,​java.lang.Integer>
        See Also:
        SortedMap.comparator()
      • int2IntEntrySet

        public ObjectSortedSet<Int2IntMap.Entry> int2IntEntrySet()
        Description copied from interface: Int2IntMap
        Returns a type-specific set view of the mappings contained in this map.

        This method is necessary because there is no inheritance along type parameters: it is thus impossible to strengthen Map.entrySet() so that it returns an ObjectSet of type-specific entries (the latter makes it possible to access keys and values with type-specific methods).

        Specified by:
        int2IntEntrySet in interface Int2IntMap
        Specified by:
        int2IntEntrySet in interface Int2IntSortedMap
        Overrides:
        int2IntEntrySet in class Int2IntMaps.SynchronizedMap
        Returns:
        a type-specific set view of the mappings contained in this map.
        See Also:
        Map.entrySet()
      • entrySet

        @Deprecated
        public ObjectSortedSet<java.util.Map.Entry<java.lang.Integer,​java.lang.Integer>> entrySet()
        Deprecated.
        Please use the corresponding type-specific method instead.
        Returns a set view of the mappings contained in this map.
        Specified by:
        entrySet in interface Int2IntMap
        Specified by:
        entrySet in interface Int2IntSortedMap
        Specified by:
        entrySet in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
        Specified by:
        entrySet in interface java.util.SortedMap<java.lang.Integer,​java.lang.Integer>
        Overrides:
        entrySet in class Int2IntMaps.SynchronizedMap
        Returns:
        a set view of the mappings contained in this map.
        See Also:
        Map.entrySet()
      • keySet

        public IntSortedSet keySet()
        Description copied from interface: Int2IntMap
        Specified by:
        keySet in interface Int2IntMap
        Specified by:
        keySet in interface Int2IntSortedMap
        Specified by:
        keySet in interface java.util.Map<java.lang.Integer,​java.lang.Integer>
        Specified by:
        keySet in interface java.util.SortedMap<java.lang.Integer,​java.lang.Integer>
        Overrides:
        keySet in class Int2IntMaps.SynchronizedMap
        Returns:
        a set view of the keys contained in this map.
        See Also:
        Map.keySet()
      • subMap

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

        public Int2IntSortedMap headMap​(int to)
        Description copied from interface: Int2IntSortedMap
        Returns a view of the portion of this sorted map whose keys are strictly less than toKey.
        Specified by:
        headMap in interface Int2IntSortedMap
        See Also:
        SortedMap.headMap(Object)
      • tailMap

        public Int2IntSortedMap tailMap​(int from)
        Description copied from interface: Int2IntSortedMap
        Returns a view of the portion of this sorted map whose keys are greater than or equal to fromKey.
        Specified by:
        tailMap in interface Int2IntSortedMap
        See Also:
        SortedMap.tailMap(Object)
      • firstIntKey

        public int firstIntKey()
        Description copied from interface: Int2IntSortedMap
        Returns the first (lowest) key currently in this map.
        Specified by:
        firstIntKey in interface Int2IntSortedMap
        See Also:
        SortedMap.firstKey()
      • lastIntKey

        public int lastIntKey()
        Description copied from interface: Int2IntSortedMap
        Returns the last (highest) key currently in this map.
        Specified by:
        lastIntKey in interface Int2IntSortedMap
        See Also:
        SortedMap.lastKey()
      • firstKey

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

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

        @Deprecated
        public Int2IntSortedMap subMap​(java.lang.Integer from,
                                       java.lang.Integer to)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        subMap in interface Int2IntSortedMap
        Specified by:
        subMap in interface java.util.SortedMap<java.lang.Integer,​java.lang.Integer>
      • headMap

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

        @Deprecated
        public Int2IntSortedMap tailMap​(java.lang.Integer from)
        Deprecated.
        Please use the corresponding type-specific method instead.
        Specified by:
        tailMap in interface Int2IntSortedMap
        Specified by:
        tailMap in interface java.util.SortedMap<java.lang.Integer,​java.lang.Integer>