Package io.netty.util.collection
Class ShortCollections
- java.lang.Object
-
- io.netty.util.collection.ShortCollections
-
public final class ShortCollections extends java.lang.Object
Utilities for short-based primitive collections.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
ShortCollections.EmptyMap
An empty map.private static class
ShortCollections.UnmodifiableMap<V>
An unmodifiable wrapper around aShortObjectMap
.
-
Field Summary
Fields Modifier and Type Field Description private static ShortObjectMap<java.lang.Object>
EMPTY_MAP
-
Constructor Summary
Constructors Modifier Constructor Description private
ShortCollections()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V> ShortObjectMap<V>
emptyMap()
Returns an unmodifiable emptyShortObjectMap
.static <V> ShortObjectMap<V>
unmodifiableMap(ShortObjectMap<V> map)
Creates an unmodifiable wrapper around the given map.
-
-
-
Field Detail
-
EMPTY_MAP
private static final ShortObjectMap<java.lang.Object> EMPTY_MAP
-
-
Method Detail
-
emptyMap
public static <V> ShortObjectMap<V> emptyMap()
Returns an unmodifiable emptyShortObjectMap
.
-
unmodifiableMap
public static <V> ShortObjectMap<V> unmodifiableMap(ShortObjectMap<V> map)
Creates an unmodifiable wrapper around the given map.
-
-