public class MetaDataMap extends Object implements Iterable<MetaDataFilterable>, Dumpable
| Modifier and Type | Class and Description |
|---|---|
protected class |
MetaDataMap.Value
Filtered value
|
| Modifier and Type | Field and Description |
|---|---|
protected List<MetaDataFilterable> |
entryListCache |
protected MetaDataFilter |
filter |
protected MetaData |
owner |
protected Map<Object,List<Integer>> |
valueKeyMap |
protected List<MetaDataMap.Value> |
valueList |
| Modifier and Type | Method and Description |
|---|---|
void |
dump(Dumper dumper)
Dump out the contents using the given indentation.
|
MetaDataMap |
filter(MetaData newOwner,
MetaDataFilter filter,
boolean lazyFilter) |
<T> T |
get(Class<T> type,
Object key)
Convenience method that returns an object cast to the specified type.
|
MetaDataFilterable |
get(Object key)
Return a keyed value from the map
|
<MD extends MetaDataFilterable> |
getEntries()
All entries in map
|
Collection<MetaDataFilterable> |
getValues(Object key) |
boolean |
hasKey(Object key)
Does the key belong to a MetaData object in this map?
|
Iterator<MetaDataFilterable> |
iterator() |
int |
size()
Number of entries in the map
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorprotected final MetaData owner
protected final MetaDataFilter filter
protected final List<MetaDataMap.Value> valueList
protected List<MetaDataFilterable> entryListCache
public MetaDataMap filter(MetaData newOwner, MetaDataFilter filter, boolean lazyFilter)
public Collection<MetaDataFilterable> getValues(Object key)
public MetaDataFilterable get(Object key)
key - Value's keypublic boolean hasKey(Object key)
public <T> T get(Class<T> type, Object key)
type - to cast tokey - value's keypublic int size()
public Iterator<MetaDataFilterable> iterator()
iterator in interface Iterable<MetaDataFilterable>public <MD extends MetaDataFilterable> List<MD> getEntries()
public void dump(Dumper dumper)
DumpableCopyright © 2015. All Rights Reserved.