public class ReferenceCountMap extends Object
Object keys. The map implementation is not very efficient when
resizing, but works well when the size of the map is known in advance or when accesses are substantially more common
than adds.| Constructor and Description |
|---|
ReferenceCountMap()
Default constructor.
|
ReferenceCountMap(int count)
Constructor with count.
|
ReferenceCountMap(ReferenceCountMap base)
Copy (clone) constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear all keys and counts.
|
Object |
clone()
Construct a copy of the table.
|
int |
getCount(Object key)
Find an entry in the table.
|
int |
incrementCount(Object key)
Increment a use count in the table.
|
Iterator |
iterator()
Get iterator for keys in map.
|
Object[] |
keyArray()
Get array of keys in map.
|
int |
size()
Get number of entries in map.
|
public ReferenceCountMap(int count)
count - number of values to assume in initial sizing of tablepublic ReferenceCountMap()
public ReferenceCountMap(ReferenceCountMap base)
base - instance being copiedpublic int incrementCount(Object key)
key - referenced object (non-null)public final int getCount(Object key)
key - key for entry to be returnedpublic int size()
public Iterator iterator()
public Object[] keyArray()
public Object clone()
public void clear()
Copyright © 2005–2016 jibx.org. All rights reserved.