Package org.instancio.feed
Interface FeedSpecAccessors
- All Known Subinterfaces:
Feed
Defines built-in accessors for a
Feed.- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionbigDecimalSpec(String propertyName) Returns aBigDecimalspec for the given property name.bigIntegerSpec(String propertyName) Returns aBigIntegerspec for the given property name.booleanSpec(String propertyName) Returns aBooleanspec for the given property name.Returns aBytespec for the given property name.characterSpec(String propertyName) Returns aCharacterspec for the given property name.doubleSpec(String propertyName) Returns aDoublespec for the given property name.Returns aFloatspec for the given property name.instantSpec(String propertyName) Returns anInstantspec for the given property name.Returns aIntegerspec for the given property name.localDateSpec(String propertyName) Returns aLocalDatespec for the given property name.localDateTimeSpec(String propertyName) Returns aLocalDateTimespec for the given property name.localTimeSpec(String propertyName) Returns aLocalTimespec for the given property name.Returns aLongspec for the given property name.offsetDateTimeSpec(String propertyName) Returns anoffsetDateTimespec for the given property name.offsetTimeSpec(String propertyName) Returns anOffsetTimespec for the given property name.Returns aShortspec for the given property name.<T> FeedSpec<T> Returns a spec for the given property name.<T> FeedSpec<T> Returns a spec for the given property name.stringSpec(String propertyName) Returns aStringspec for the given property name.Returns aUUIDspec for the given property name.yearMonthSpec(String propertyName) Returns aYearMonthspec for the given property name.Returns aYearspec for the given property name.zonedDateTimeSpec(String propertyName) Returns aZonedDateTimespec for the given property name.
-
Method Details
-
spec
Returns a spec for the given property name. The value will be converted using the specifiedconverterfunction.- Type Parameters:
T- the target type to convert the value to- Parameters:
propertyName- to return as a specconverter- for mapping the string value to the target type- Returns:
- spec for the given property name
-
spec
Returns a spec for the given property name. The value will be converted to the specifiedtargetTypeusing built-in converters.- Type Parameters:
T- the target type of values returned by the spec- Parameters:
propertyName- to return as a spectargetType- the type that the spec should return- Returns:
- spec for the given property name
-
stringSpec
Returns aStringspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
booleanSpec
Returns aBooleanspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
characterSpec
Returns aCharacterspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
byteSpec
Returns aBytespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
shortSpec
Returns aShortspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
intSpec
Returns aIntegerspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
longSpec
Returns aLongspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
doubleSpec
Returns aDoublespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
floatSpec
Returns aFloatspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
bigIntegerSpec
Returns aBigIntegerspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
bigDecimalSpec
Returns aBigDecimalspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
instantSpec
Returns anInstantspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
localTimeSpec
Returns aLocalTimespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
localDateSpec
Returns aLocalDatespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
localDateTimeSpec
Returns aLocalDateTimespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
offsetTimeSpec
Returns anOffsetTimespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
offsetDateTimeSpec
Returns anoffsetDateTimespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
zonedDateTimeSpec
Returns aZonedDateTimespec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
yearMonthSpec
Returns aYearMonthspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
yearSpec
Returns aYearspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-
uuidSpec
Returns aUUIDspec for the given property name.- Parameters:
propertyName- the name of the property to return as a spec- Returns:
- spec for the given property name
-