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