public abstract class GenericMap extends Object implements Map
GenericMap
is simply an abstract java.util.Map
implementation for which subclasses really only need to implement
the method entryIterator.Modifier and Type | Field and Description |
---|---|
protected int |
size |
Constructor and Description |
---|
GenericMap() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value)
return the element with the given key
|
protected abstract Iterator |
entryIterator() |
Set |
entrySet() |
boolean |
equals(Object other) |
int |
hashCode() |
boolean |
isEmpty() |
protected boolean |
keyEquals(Object containedKey,
Object givenKey) |
protected int |
keyHash(Object key) |
protected Iterator |
keyIterator() |
Set |
keySet() |
void |
putAll(Map other) |
int |
size() |
protected boolean |
valueEquals(Object value1,
Object value2) |
protected int |
valueHash(Object value) |
protected Iterator |
valueIterator() |
Collection |
values() |
protected int keyHash(Object key)
protected int valueHash(Object value)
protected abstract Iterator entryIterator()
protected Iterator keyIterator()
protected Iterator valueIterator()
public Collection values()
public int hashCode()
public boolean equals(Object other)
public boolean containsValue(Object value)
containsValue
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
Copyright © 2001-2015 JRuby. All Rights Reserved.