Package org.dizitart.no2.common
Class FieldValues
- java.lang.Object
-
- org.dizitart.no2.common.FieldValues
-
public class FieldValues extends Object
Represents a collection of field-value pairs, with methods to retrieve values by field name.- Since:
- 4.0
- Author:
- Anindya Chatterjee
-
-
Constructor Summary
Constructors Constructor Description FieldValues()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Objectget(String field)Retrieves the value associated with a given field name.FieldsgetFields()Returns theFieldsobject associated with this instance.NitriteIdgetNitriteId()List<Pair<String,Object>>getValues()inthashCode()voidsetFields(Fields fields)voidsetNitriteId(NitriteId nitriteId)voidsetValues(List<Pair<String,Object>> values)StringtoString()
-
-
-
Method Detail
-
get
public Object get(String field)
Retrieves the value associated with a given field name.- Parameters:
field- the name of a field.- Returns:
- the value.
-
getFields
public Fields getFields()
Returns theFieldsobject associated with this instance.- Returns:
- an instance of the Fields class.
-
getNitriteId
public NitriteId getNitriteId()
-
setNitriteId
public void setNitriteId(NitriteId nitriteId)
-
setFields
public void setFields(Fields fields)
-
-