Package com.mindee.parsing.v2.field
Class InferenceFields
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<K,V>
-
- java.util.LinkedHashMap<String,DynamicField>
-
- com.mindee.parsing.v2.field.InferenceFields
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,DynamicField>
public final class InferenceFields extends LinkedHashMap<String,DynamicField>
Inference fields map.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description InferenceFields()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
ListField
getListField(String fieldName)
Retrieves the field as a `ListField`.ObjectField
getObjectField(String fieldName)
Retrieves the field as an `ObjectField`.SimpleField
getSimpleField(String fieldName)
Retrieves the field as a `SimpleField`.int
hashCode()
String
toString()
String
toString(int indent)
-
Methods inherited from class java.util.LinkedHashMap
clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
-
Methods inherited from class java.util.HashMap
clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
-
-
-
-
Method Detail
-
getSimpleField
public SimpleField getSimpleField(String fieldName) throws IllegalStateException
Retrieves the field as a `SimpleField`.- Parameters:
fieldName
- the name of the field- Throws:
IllegalStateException
- if the field is not a SimpleField
-
getListField
public ListField getListField(String fieldName) throws IllegalStateException
Retrieves the field as a `ListField`.- Parameters:
fieldName
- the name of the field- Throws:
IllegalStateException
- if the field is not a ListField
-
getObjectField
public ObjectField getObjectField(String fieldName) throws IllegalStateException
Retrieves the field as an `ObjectField`.- Parameters:
fieldName
- the name of the field- Throws:
IllegalStateException
- if the field is not a ObjectField
-
toString
public String toString(int indent)
-
toString
public String toString()
- Overrides:
toString
in classAbstractMap<String,DynamicField>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in interfaceMap<String,DynamicField>
- Overrides:
equals
in classAbstractMap<String,DynamicField>
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfaceMap<String,DynamicField>
- Overrides:
hashCode
in classAbstractMap<String,DynamicField>
-
-