Class FieldMapSet
java.lang.Object
gov.nasa.pds.registry.common.util.FieldMapSet
- All Implemented Interfaces:
FieldMap
Implementation of FieldMap interface which stores values in a set.
Order and number of values in PDS label XML are not preserved.
Only unique values are stored. Values are sorted alphabetically (as a string).
- Author:
- karpenko
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd field's value.voidAdd multiple values.voidclear()Remove all the fields from the mapgetFirstValue(String fieldName) Get first value of a field.getNames()Get names of all fields in this map.Get all values of a field.booleanisEmpty()Check if map is empty.intsize()Map size / number of fields.
-
Constructor Details
-
FieldMapSet
public FieldMapSet()Constructor
-
-
Method Details
-
size
public int size()Map size / number of fields. -
isEmpty
public boolean isEmpty()Check if map is empty. -
clear
public void clear()Remove all the fields from the map -
addValue
Add field's value. -
addValues
Add multiple values. -
getFirstValue
Get first value of a field.- Specified by:
getFirstValuein interfaceFieldMap
-
getValues
Get all values of a field. -
getNames
Get names of all fields in this map.
-