ch.panter.li.bi.util
Class ShieldableLinkedMap<K,V>

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<K,V>
          extended by java.util.LinkedHashMap<K,V>
              extended by 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

Constructor Summary
ShieldableLinkedMap()
          Creates a new empty instance
 
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 class java.util.LinkedHashMap
clear, containsValue, get, removeEldestEntry
 
Methods inherited from class java.util.HashMap
clone, containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ch.panter.li.bi.util.ReadOnlyMap
containsKey, get, isEmpty, size
 
Methods inherited from interface java.util.Map
containsKey, entrySet, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, values
 

Constructor Detail

ShieldableLinkedMap

public ShieldableLinkedMap()
Creates a new empty instance

Method Detail

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.