no.sesat.search.datamodel.generic
Interface MapDataObject<V>

All Superinterfaces:
Serializable
All Known Subinterfaces:
JunkYardDataObject, ParametersDataObject
All Known Implementing Classes:
MapDataObjectSupport

@DataObject
public interface MapDataObject<V>
extends Serializable

Version:
$Id: MapDataObject.java 7225 2009-04-09 00:32:20Z ssmiweve $

Method Summary
 V getValue(String key)
          Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.
 Map<String,V> getValues()
          Access to whole map is through a Collections.unmodifiable(map) copy.
 void setValue(String key, V value)
          Associates the specified value with the specified key in this map (optional operation).
 

Method Detail

getValues

Map<String,V> getValues()
Access to whole map is through a Collections.unmodifiable(map) copy.

Returns:

getValue

V getValue(String key)
Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

Parameters:
key -
Returns:

setValue

void setValue(String key,
              V value)
Associates the specified value with the specified key in this map (optional operation). If the map previously contained a mapping for the key, the old value is replaced by the specified value. (A map m is said to contain a mapping for a key k if and only if m.containsKey(k) would return true.)

If the value is null remove(key) is called on the underlying map.

Parameters:
key -
value -


Copyright © 2005-2009 Schibsted ASA. All Rights Reserved.