Top Description Inners Methods
io.netty.util.collection

public Interface ByteObjectMap<V>

extends Map<Byte, V>
Known Direct Implementers
io.netty.util.collection.ByteCollections.EmptyMap, io.netty.util.collection.ByteCollections.UnmodifiableMap, io.netty.util.collection.ByteObjectHashMap
Type Parameters
<V>
the value type stored in the map.
Imports
java.util.Map

Interface for a primitive map that uses bytes as keys.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
ByteObjectMap.PrimitiveEntry<
the value type stored in the map.
V
>

A primitive entry in the map, provided by the iterator from entries()

Method Summary

Modifier and TypeMethod and Description
public boolean
containsKey(byte key)

Indicates whether or not this map contains a value for the specified key.

public Iterable<ByteObjectMap.PrimitiveEntry<V>>
entries()

Gets an iterable to traverse over the primitive entries contained in this map.

public V

Returns:

the value or null if the key was not found in the map.
get
(byte
the key whose associated value is to be returned.
key
)

Gets the value in the map with the specified key.

public V

Returns:

the previous value for this key or null if there was no previous mapping.
put
(byte
the key of the entry.
key
,
V
the value of the entry.
value
)

Redeclares java.util.Map.put.

Puts the given entry into the map.
public V

Returns:

the previous value for the key, or null if there was no mapping.
remove
(byte
the key for the entry to be removed from this map.
key
)

Removes the entry with the specified key.

Inherited from java.util.Map:
clearcomputecomputeIfAbsentcomputeIfPresentcontainsKeycontainsValuecopyOfentryentrySetequalsforEachgetgetOrDefaulthashCodeisEmptykeySetmergeofofofofofofofofofofofofEntriesputAllputIfAbsentremoveremovereplacereplacereplaceAllsizevalues

Method Detail

containsKeyback to summary
public boolean containsKey(byte key)

Indicates whether or not this map contains a value for the specified key.

entriesback to summary
public Iterable<ByteObjectMap.PrimitiveEntry<V>> entries()

Gets an iterable to traverse over the primitive entries contained in this map. As an optimization, the PrimitiveEntrys returned by the Iterator may change as the Iterator progresses. The caller should not rely on PrimitiveEntry key/value stability.

getback to summary
public V get(byte key)

Gets the value in the map with the specified key.

Parameters
key:byte

the key whose associated value is to be returned.

Returns:V

the value or null if the key was not found in the map.

putback to summary
public V put(byte key, V value)

Redeclares java.util.Map.put.

Puts the given entry into the map.

Parameters
key:byte

the key of the entry.

value:V

the value of the entry.

Returns:V

the previous value for this key or null if there was no previous mapping.

removeback to summary
public V remove(byte key)

Removes the entry with the specified key.

Parameters
key:byte

the key for the entry to be removed from this map.

Returns:V

the previous value for the key, or null if there was no mapping.

io.netty.util.collection back to summary

public Interface ByteObjectMap.PrimitiveEntry<V>

Known Direct Implementers
io.netty.util.collection.ByteCollections.UnmodifiableMap.EntryImpl, io.netty.util.collection.ByteObjectHashMap.PrimitiveIterator
Type Parameters
<V>
the value type stored in the map.

A primitive entry in the map, provided by the iterator from entries()

Method Summary

Modifier and TypeMethod and Description
public byte
key()

Gets the key for this entry.

public void
setValue(V value)

Sets the value for this entry.

public V
value()

Gets the value for this entry.

Method Detail

keyback to summary
public byte key()

Gets the key for this entry.

setValueback to summary
public void setValue(V value)

Sets the value for this entry.

valueback to summary
public V value()

Gets the value for this entry.