ch.panter.li.bi.util
Class ShieldableLinkedMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<K,V>
ch.panter.li.bi.util.ShieldableLinkedMap<K,V>
- All Implemented Interfaces:
- ReadOnlyMap<K,V>, Serializable, Cloneable, Iterable<V>, Map<K,V>
public class ShieldableLinkedMap<K,V>
- extends LinkedHashMap<K,V>
- implements ReadOnlyMap<K,V>
- See Also:
- Serialized Form
Method Summary |
Iterator<V> |
iterator()
|
Iterator<K> |
keyIterator()
Iterator over the keys in this instance |
K[] |
keysAsArray(K[] array)
Returns an array containing all keys of this instance according to the
contract defined in java.util.Collection#toArray(T[] a) . |
Iterator<V> |
valueIterator()
Iterator over the values in this instance |
V[] |
valuesAsArray(V[] array)
Returns an array containing all values of this instance according to the
contract defined in java.util.Collection#toArray(T[] a) . |
Methods inherited from interface java.util.Map |
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
ShieldableLinkedMap
public ShieldableLinkedMap()
- Creates a new empty instance
keyIterator
public Iterator<K> keyIterator()
- Description copied from interface:
ReadOnlyMap
- Iterator over the keys in this instance
- Specified by:
keyIterator
in interface ReadOnlyMap<K,V>
valueIterator
public Iterator<V> valueIterator()
- Description copied from interface:
ReadOnlyMap
- Iterator over the values in this instance
- Specified by:
valueIterator
in interface ReadOnlyMap<K,V>
keysAsArray
public K[] keysAsArray(K[] array)
- Description copied from interface:
ReadOnlyMap
- Returns an array containing all keys of this instance according to the
contract defined in
java.util.Collection#toArray(T[] a)
.
- Specified by:
keysAsArray
in interface ReadOnlyMap<K,V>
- Parameters:
array
- the target array
- Returns:
- an array containing all keys of this instance
valuesAsArray
public V[] valuesAsArray(V[] array)
- Description copied from interface:
ReadOnlyMap
- Returns an array containing all values of this instance according to the
contract defined in
java.util.Collection#toArray(T[] a)
.
- Specified by:
valuesAsArray
in interface ReadOnlyMap<K,V>
- Parameters:
array
- the target array
- Returns:
- an array containing all values of this instance
iterator
public Iterator<V> iterator()
- Specified by:
iterator
in interface Iterable<V>
Copyright 2007-2007 SourceForge. All Rights Reserved.