com.ca.commons.datamodel
Class DataModelMapValue

java.lang.Object
  extended by com.ca.commons.datamodel.DataModelMapValue

public final class DataModelMapValue
extends Object

Represents a map value which consists of key (DataModelValue) / value (DataModelCollection) pairs - original insertion order is preserved.


Constructor Summary
DataModelMapValue(DataModelValue keyType, DataModelValue valueType, Map<? extends DataModelValue,? extends DataModelValue> values)
           
 
Method Summary
 boolean equals(Object o)
           
 DataModelValue get(DataModelValue key)
           
 DataModelValue getKeyType()
           
 Map<DataModelValue,DataModelValue> getValues()
          Returns an immutable map of String / DataModelValue pairs.
 DataModelValue getValueType()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataModelMapValue

public DataModelMapValue(@NotNull
                         DataModelValue keyType,
                         @NotNull
                         DataModelValue valueType,
                         @NotNull
                         Map<? extends DataModelValue,? extends DataModelValue> values)
Method Detail

getValues

@NotNull
public Map<DataModelValue,DataModelValue> getValues()
Returns an immutable map of String / DataModelValue pairs.


get

@NotNull
public DataModelValue get(@NotNull
                                  DataModelValue key)

getKeyType

@NotNull
public DataModelValue getKeyType()

getValueType

@NotNull
public DataModelValue getValueType()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

@NotNull
public String toString()
Overrides:
toString in class Object


Created 2011-07-14 13:27 EST