Package com.faircom.jsonaction
Class Fields
- Object
-
- AbstractCollection<Field>
-
- Fields
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(Field field)
Add one field to the instance of this class.boolean
addAll(Collection<? extends Field> collection)
Adds every element in the specified collection to this instance.Fields
addField(Field field)
Add one field to the instance of this class.List<Field>
getFieldList()
Return all fields.boolean
isEmpty()
@NotNull Iterator<Field>
iterator()
int
size()
Return the count of elements in this instance.ArrayNode
toArrayNode()
-
Methods inherited from class AbstractCollection
clear, contains, containsAll, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
iterator
@NotNull public @NotNull Iterator<Field> iterator()
-
size
public int size()
Return the count of elements in this instance.
-
add
public boolean add(Field field)
Add one field to the instance of this class.
-
addAll
public boolean addAll(Collection<? extends Field> collection)
Adds every element in the specified collection to this instance.
-
addField
public Fields addField(Field field)
Add one field to the instance of this class.- Parameters:
field
- a complete Field class.- Returns:
- an updated instance of this class.
- Since:
- 1.0
-
isEmpty
public boolean isEmpty()
-
toArrayNode
public ArrayNode toArrayNode()
-
getFieldList
public List<Field> getFieldList()
Return all fields.- Returns:
- all fields in this instance.
- Since:
- 1.0
-
-