net.walend.lyophil.collection
Interface MapToFreezables

All Superinterfaces:
HasState, Map
All Known Subinterfaces:
MutableMapToFreezables
All Known Implementing Classes:
AbstractFreezerHashMap, AbstractHashMapToFreezables, MutableFreezerHashMap, MutableHashMapToFreezables

public interface MapToFreezables
extends Map

This Map maps any Object as a key to a Freezable. This interface adds methods to the Map interface for working with identifiers.

The valueIterator() method returns a FreezableIterator.

Since:
20010713
Author:
David Walend

Field Summary
 
Fields inherited from interface net.walend.collection.Map
EMPTY
 
Method Summary
 boolean containsIdentifier(java.io.Serializable identifier)
          Returns true if one of the keys in the map is associated with identifier.
 Collection getdentifiers()
          Returns a collection of all the identifiers.
 java.io.Serializable getIdentifier(java.lang.Object key)
          Returns the idetnifier associated with key, or null if no identifier is associated with the key.
 java.util.Iterator identifierIterator()
          Returns an iterator over the identifiers.
 Map keysToIdentifiers()
          Creates a new Map which maps the keys to their identifiers.
 FreezableIterator valueFreezableIterator()
          Returns a FreezableIterator over the values so that you can work with both identifiers and Freezables.
 
Methods inherited from interface net.walend.collection.Map
containsAll, containsKey, containsValue, get, getIdentitor, getJavaMap, getKeys, getValues, isEmpty, keyIterator, sameContentsAs, size, valueIterator
 
Methods inherited from interface net.walend.collection.HasState
getPrincipleInterface, sameStateAs
 

Method Detail

containsIdentifier

public boolean containsIdentifier(java.io.Serializable identifier)
Returns true if one of the keys in the map is associated with identifier.


getIdentifier

public java.io.Serializable getIdentifier(java.lang.Object key)
Returns the idetnifier associated with key, or null if no identifier is associated with the key.


getdentifiers

public Collection getdentifiers()
Returns a collection of all the identifiers.


identifierIterator

public java.util.Iterator identifierIterator()
Returns an iterator over the identifiers.


keysToIdentifiers

public Map keysToIdentifiers()
Creates a new Map which maps the keys to their identifiers.


valueFreezableIterator

public FreezableIterator valueFreezableIterator()
Returns a FreezableIterator over the values so that you can work with both identifiers and Freezables.



Copyright (c) 2000, 2001, David Walend