it.tidalwave.util
Class TypeSafeHashMap
java.lang.Object
it.tidalwave.util.TypeSafeHashMap
- All Implemented Interfaces:
- TypeSafeMap, Serializable, Iterable<Object>
@Immutable
public class TypeSafeHashMap
- extends Object
- implements TypeSafeMap, Serializable
- Version:
- $Id$
- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
- Status: draft API
TypeSafeHashMap
public TypeSafeHashMap(@Nonnull
Map<Key<?>,Object> map)
get
@Nonnull
public <T> T get(@Nonnull
Key<T> key)
throws NotFoundException
-
- Specified by:
get
in interface TypeSafeMap
- Throws:
NotFoundException
containsKey
public boolean containsKey(@Nonnull
Key<?> key)
-
- Specified by:
containsKey
in interface TypeSafeMap
getKeys
@Nonnull
public Set<Key<?>> getKeys()
-
- Specified by:
getKeys
in interface TypeSafeMap
getSize
@Nonnegative
public int getSize()
-
- Specified by:
getSize
in interface TypeSafeMap
iterator
@Nonnull
public Iterator<Object> iterator()
-
- Specified by:
iterator
in interface Iterable<Object>
asMap
@Nonnull
public Map<Key<?>,Object> asMap()
-
- Specified by:
asMap
in interface TypeSafeMap
toString
@Nonnull
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2009-2011 Tidalwave s.a.s.. All Rights Reserved.