com.vinculumtech.platform.util
Class TypeMap
java.lang.Object
java.util.AbstractMap
com.vinculumtech.platform.util.TypeMap
- All Implemented Interfaces:
- java.util.Map
- public class TypeMap
- extends java.util.AbstractMap
TypeMap holds a set of Class/Object pairs. The Class instances are sorted from narrow
to wide.
- Version:
- $Id: //depot/carrierwave/src/shared/com/vinculumtech/platform/util/TypeMap.java#4 $
- Author:
- Dan Walters
Methods inherited from class java.util.AbstractMap |
clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
TypeMap
public TypeMap()
TypeMap
public TypeMap(java.util.Map map)
entrySet
public java.util.Set entrySet()
getAssignable
public java.lang.Object getAssignable(java.lang.Class key)
containsAssignableKey
public boolean containsAssignableKey(java.lang.Class key)
insertEntryBetween
protected void insertEntryBetween(TypeMap.Entry entry,
TypeMap.Entry previousEntry,
TypeMap.Entry nextEntry)
put
public java.lang.Object put(java.lang.Class key,
java.lang.Object value)
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
clear
public void clear()
getFirstEntry
public TypeMap.Entry getFirstEntry()
- Returns the more narrow entry
- Returns:
getLastEntry
public TypeMap.Entry getLastEntry()
- Returns the most wide entry
- Returns:
Copyright (C) 2002 Vinculum Technologies, Inc. All Rights Reserved.