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 aBigDecimal
spec for the given property name.bigIntegerSpec
(String propertyName) Returns aBigInteger
spec for the given property name.booleanSpec
(String propertyName) Returns aBoolean
spec for the given property name.Returns aByte
spec for the given property name.characterSpec
(String propertyName) Returns aCharacter
spec for the given property name.doubleSpec
(String propertyName) Returns aDouble
spec for the given property name.Returns aFloat
spec for the given property name.instantSpec
(String propertyName) Returns anInstant
spec for the given property name.Returns aInteger
spec for the given property name.localDateSpec
(String propertyName) Returns aLocalDate
spec for the given property name.localDateTimeSpec
(String propertyName) Returns aLocalDateTime
spec for the given property name.localTimeSpec
(String propertyName) Returns aLocalTime
spec for the given property name.Returns aLong
spec for the given property name.offsetDateTimeSpec
(String propertyName) Returns anoffsetDateTime
spec for the given property name.offsetTimeSpec
(String propertyName) Returns anOffsetTime
spec for the given property name.Returns aShort
spec 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 aString
spec for the given property name.Returns aUUID
spec for the given property name.yearMonthSpec
(String propertyName) Returns aYearMonth
spec for the given property name.Returns aYear
spec for the given property name.zonedDateTimeSpec
(String propertyName) Returns aZonedDateTime
spec for the given property name.
-
Method Details
-
spec
Returns a spec for the given property name. The value will be converted using the specifiedconverter
function.- 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 specifiedtargetType
using 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 aString
spec 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 aBoolean
spec 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 aCharacter
spec 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 aByte
spec 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 aShort
spec 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 aInteger
spec 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 aLong
spec 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 aDouble
spec 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 aFloat
spec 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 aBigInteger
spec 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 aBigDecimal
spec 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 anInstant
spec 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 aLocalTime
spec 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 aLocalDate
spec 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 aLocalDateTime
spec 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 anOffsetTime
spec 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 anoffsetDateTime
spec 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 aZonedDateTime
spec 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 aYearMonth
spec 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 aYear
spec 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 aUUID
spec for the given property name.- Parameters:
propertyName
- the name of the property to return as a spec- Returns:
- spec for the given property name
-