Class IntCollections

java.lang.Object
io.netty.util.collection.IntCollections

public final class IntCollections extends java.lang.Object
Utilities for int-based primitive collections.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final class 
    An empty map.
    private static final class 
    An unmodifiable wrapper around a IntObjectMap.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final IntObjectMap<java.lang.Object>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <V> IntObjectMap<V>
    Returns an unmodifiable empty IntObjectMap.
    static <V> IntObjectMap<V>
    Creates an unmodifiable wrapper around the given map.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY_MAP

      private static final IntObjectMap<java.lang.Object> EMPTY_MAP
  • Constructor Details

    • IntCollections

      private IntCollections()
  • Method Details

    • emptyMap

      public static <V> IntObjectMap<V> emptyMap()
      Returns an unmodifiable empty IntObjectMap.
    • unmodifiableMap

      public static <V> IntObjectMap<V> unmodifiableMap(IntObjectMap<V> map)
      Creates an unmodifiable wrapper around the given map.