Package com.bazaarvoice.jolt.modifier
Class DataType.LIST
- java.lang.Object
-
- com.bazaarvoice.jolt.modifier.DataType
-
- com.bazaarvoice.jolt.modifier.DataType.LIST
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.bazaarvoice.jolt.modifier.DataType
DataType.LIST, DataType.MAP, DataType.RUNTIME
-
-
Field Summary
Fields Modifier and Type Field Description private int
maxIndexFromSpec
-
Constructor Summary
Constructors Modifier Constructor Description private
LIST(int maxIndexFromSpec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.Object
createValue()
MAP and LIST types overrides this method to return appropriate new map or listjava.lang.Integer
expand(java.lang.Object input)
LIST overrides this method to expand the source (list) such that in can support an index specified in spec that is outside the range input list, returns original size of the inputboolean
isCompatible(java.lang.Object input)
Determines if an input is compatible with current DataType-
Methods inherited from class com.bazaarvoice.jolt.modifier.DataType
create, determineDataType
-
-
-
-
Method Detail
-
createValue
protected java.lang.Object createValue()
Description copied from class:DataType
MAP and LIST types overrides this method to return appropriate new map or list- Specified by:
createValue
in classDataType
-
expand
public java.lang.Integer expand(java.lang.Object input)
Description copied from class:DataType
LIST overrides this method to expand the source (list) such that in can support an index specified in spec that is outside the range input list, returns original size of the input
-
isCompatible
public boolean isCompatible(java.lang.Object input)
Description copied from class:DataType
Determines if an input is compatible with current DataType- Specified by:
isCompatible
in classDataType
-
-