Package com.mindee.parsing.v2.field
Class ListField
- java.lang.Object
-
- com.mindee.parsing.v2.field.BaseField
-
- com.mindee.parsing.v2.field.ListField
-
public final class ListField extends BaseField
Field holding a list of fields.
-
-
Constructor Summary
Constructors Constructor Description ListField()
ListField(List<DynamicField> items)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
List<DynamicField>
getItems()
Items of the list.List<ObjectField>
getObjectItems()
Retrieves theitems
asObjectField
objects.List<SimpleField>
getSimpleItems()
Retrieves theitems
asSimpleField
objects.int
hashCode()
String
toString()
-
Methods inherited from class com.mindee.parsing.v2.field.BaseField
getConfidence, getLocations, setConfidence, setLocations
-
-
-
-
Constructor Detail
-
ListField
public ListField(List<DynamicField> items)
-
ListField
public ListField()
-
-
Method Detail
-
getSimpleItems
public List<SimpleField> getSimpleItems() throws IllegalStateException
Retrieves theitems
asSimpleField
objects.- Returns:
- a list of
SimpleField
objects - Throws:
IllegalStateException
- if any dynamic field in the list is not of typeSIMPLE_FIELD
-
getObjectItems
public List<ObjectField> getObjectItems() throws IllegalStateException
Retrieves theitems
asObjectField
objects.- Returns:
- a list of
ObjectField
objects - Throws:
IllegalStateException
- if any dynamic field in the list is not of typeOBJECT_FIELD
-
getItems
public List<DynamicField> getItems()
Items of the list.
-
-