Package io.netty.util.collection
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 class
IntCollections.EmptyMap
An empty map.private static class
IntCollections.UnmodifiableMap<V>
An unmodifiable wrapper around aIntObjectMap
.
-
Field Summary
Fields Modifier and Type Field Description private static IntObjectMap<java.lang.Object>
EMPTY_MAP
-
Constructor Summary
Constructors Modifier Constructor Description private
IntCollections()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> IntObjectMap<V>
emptyMap()
Returns an unmodifiable emptyIntObjectMap
.static <V> IntObjectMap<V>
unmodifiableMap(IntObjectMap<V> map)
Creates an unmodifiable wrapper around the given map.
-
-
-
Field Detail
-
EMPTY_MAP
private static final IntObjectMap<java.lang.Object> EMPTY_MAP
-
-
Method Detail
-
emptyMap
public static <V> IntObjectMap<V> emptyMap()
Returns an unmodifiable emptyIntObjectMap
.
-
unmodifiableMap
public static <V> IntObjectMap<V> unmodifiableMap(IntObjectMap<V> map)
Creates an unmodifiable wrapper around the given map.
-
-