Top Description Inners Methods
io.netty.util.collection

public Interface LongObjectMap<V>

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

Interface for a primitive map that uses longs as keys.

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface
LongObjectMap.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(long key)

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

public Iterable<LongObjectMap.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
(long
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
(long
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
(long
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(long key)

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

entriesback to summary
public Iterable<LongObjectMap.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(long key)

Gets the value in the map with the specified key.

Parameters
key:long

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(long key, V value)

Redeclares java.util.Map.put.

Puts the given entry into the map.

Parameters
key:long

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(long key)

Removes the entry with the specified key.

Parameters
key:long

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 LongObjectMap.PrimitiveEntry<V>

Known Direct Implementers
io.netty.util.collection.LongCollections.UnmodifiableMap.EntryImpl, io.netty.util.collection.LongObjectHashMap.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 long
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 long 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.