|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FlexibleMap<K,V>
Specifies useful/necessary diagnostic and lookup methods that the Map and HashMap APIs lack.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
V |
get(K key,
int hashCode)
Returns the value for the specified key. |
int |
getCapacity()
Gets the capacity of this map (optional operation). |
float |
getLoadFactor()
Gets the load factor of this map (optional operation). |
String |
getStats()
Returns a string that represents the useful statistics of this map (useful/necessary in the case of hash maps, where it is desirable to know the number of collisions and average and maximum buckets sizes). |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
int getCapacity()
UnsupportedOperationException - if this map is not a hash mapfloat getLoadFactor()
UnsupportedOperationException - if this map is not a hash mapString getStats()
V get(K key,
int hashCode)
key.hashCode(), the behavior of thiscollins
method is not defined.
key - the key whose value is to be looked uphashCode - the value of key.hashCode()
|
Parsing Engine | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||