com.endeca.navigation
Class PropertyMap
java.lang.Object
java.util.AbstractMap
com.endeca.navigation.PropertyMap
- All Implemented Interfaces:
- Map
public class PropertyMap
- extends AbstractMap
- implements Map
Class providing access to a collection of properties. PropertyMap
offers
an interfaces to allow the most flexible usage of the properties.
PropertyMap
exposes itself as a Java Map collection giving direct
access to the values via the keys.
In addition, the PropertyMap
class also offers methods to provide multi map behavior via
getValues
since a property set can include many values
with the same key.
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
Methods inherited from class java.util.AbstractMap |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values |
Methods inherited from interface java.util.Map |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
getValues
public Collection getValues(String key)
- Gets the values associated with this key. This method offers
features over the regular get method only when there are more than
one property in the
PropertyMap
with the same key.
- Returns:
- A iterator for all the values associated with the
key. Returns
null
when no values are
associated with key
.
entrySet
public Set entrySet()
- Gets the set of all properties in this property map
- Specified by:
entrySet
in interface Map
- Specified by:
entrySet
in class AbstractMap
- Returns:
- The set of all properties.
© 2011 Endeca Technologies, Inc.
Endeca Confidential