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 booleancanEqual(Object other)booleanequals(Object o)ListFieldgetListField(String fieldName)Retrieves the field as a `ListField`.ObjectFieldgetObjectField(String fieldName)Retrieves the field as an `ObjectField`.SimpleFieldgetSimpleField(String fieldName)Retrieves the field as a `SimpleField`.inthashCode()StringtoString()StringtoString(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:
toStringin classAbstractMap<String,DynamicField>
-
equals
public boolean equals(Object o)
- Specified by:
equalsin interfaceMap<String,DynamicField>- Overrides:
equalsin classAbstractMap<String,DynamicField>
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfaceMap<String,DynamicField>- Overrides:
hashCodein classAbstractMap<String,DynamicField>
-
-