public class LongObjectPagedHashMap<T> extends Object implements Iterable<LongObjectPagedHashMap.Cursor<T>>
| 修飾子とタイプ | クラスと説明 |
|---|---|
static class |
LongObjectPagedHashMap.Cursor<T> |
| コンストラクタと説明 |
|---|
LongObjectPagedHashMap(BigArrays bigArrays) |
LongObjectPagedHashMap(long capacity,
BigArrays bigArrays) |
LongObjectPagedHashMap(long capacity,
float maxLoadFactor,
BigArrays bigArrays) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
long |
capacity()
Return the number of allocated slots to store this hash table.
|
void |
close() |
T |
get(long key)
Get the value that is associated with
key or null if key
was not present in the hash table. |
protected void |
grow() |
Iterator<LongObjectPagedHashMap.Cursor<T>> |
iterator() |
T |
put(long key,
T value)
Put this new (key, value) pair into this hash table and return the value
that was previously associated with
key or null in case of
an insertion. |
T |
remove(long key)
Remove the entry which has this key in the hash table and return the
associated value or null if there was no entry associated with this key.
|
protected void |
removeAndAdd(long index)
Remove the entry at the given index and add it back
|
protected void |
resize(long capacity)
Resize to the given capacity.
|
long |
size()
Return the number of longs in this hash table.
|
protected boolean |
used(long bucket) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic LongObjectPagedHashMap(BigArrays bigArrays)
public LongObjectPagedHashMap(long capacity,
BigArrays bigArrays)
public LongObjectPagedHashMap(long capacity,
float maxLoadFactor,
BigArrays bigArrays)
public T get(long key)
key or null if key
was not present in the hash table.public T put(long key, T value)
key or null in case of
an insertion.public T remove(long key)
public Iterator<LongObjectPagedHashMap.Cursor<T>> iterator()
iterator インタフェース内 Iterable<LongObjectPagedHashMap.Cursor<T>>public void close()
close インタフェース内 AutoCloseableclose インタフェース内 Releasableprotected void resize(long capacity)
protected boolean used(long bucket)
protected void removeAndAdd(long index)
public long capacity()
public long size()
protected final void grow()
Copyright © 2009–2016. All rights reserved.