Interface FeedSpecAccessors

All Known Subinterfaces:
Feed

@ExperimentalApi interface FeedSpecAccessors
Defines built-in accessors for a Feed.
Since:
5.0.0
  • Method Details

    • spec

      <T> FeedSpec<T> spec(String propertyName, Function<String,T> converter)
      Returns a spec for the given property name. The value will be converted using the specified converter function.
      Type Parameters:
      T - the target type to convert the value to
      Parameters:
      propertyName - to return as a spec
      converter - for mapping the string value to the target type
      Returns:
      spec for the given property name
    • spec

      <T> FeedSpec<T> spec(String propertyName, Class<T> targetType)
      Returns a spec for the given property name. The value will be converted to the specified targetType using built-in converters.
      Type Parameters:
      T - the target type of values returned by the spec
      Parameters:
      propertyName - to return as a spec
      targetType - the type that the spec should return
      Returns:
      spec for the given property name
    • stringSpec

      FeedSpec<String> stringSpec(String propertyName)
      Returns a String 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

      FeedSpec<Boolean> booleanSpec(String propertyName)
      Returns a Boolean 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

      FeedSpec<Character> characterSpec(String propertyName)
      Returns a Character 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

      FeedSpec<Byte> byteSpec(String propertyName)
      Returns a Byte 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

      FeedSpec<Short> shortSpec(String propertyName)
      Returns a Short 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

      FeedSpec<Integer> intSpec(String propertyName)
      Returns a Integer 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

      FeedSpec<Long> longSpec(String propertyName)
      Returns a Long 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

      FeedSpec<Double> doubleSpec(String propertyName)
      Returns a Double 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

      FeedSpec<Float> floatSpec(String propertyName)
      Returns a Float 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

      FeedSpec<BigInteger> bigIntegerSpec(String propertyName)
      Returns a BigInteger 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

      FeedSpec<BigDecimal> bigDecimalSpec(String propertyName)
      Returns a BigDecimal 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

      FeedSpec<Instant> instantSpec(String propertyName)
      Returns an Instant 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

      FeedSpec<LocalTime> localTimeSpec(String propertyName)
      Returns a LocalTime 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

      FeedSpec<LocalDate> localDateSpec(String propertyName)
      Returns a LocalDate 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

      FeedSpec<LocalDateTime> localDateTimeSpec(String propertyName)
      Returns a LocalDateTime 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

      FeedSpec<OffsetTime> offsetTimeSpec(String propertyName)
      Returns an OffsetTime 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

      FeedSpec<OffsetDateTime> offsetDateTimeSpec(String propertyName)
      Returns an offsetDateTime 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

      FeedSpec<ZonedDateTime> zonedDateTimeSpec(String propertyName)
      Returns a ZonedDateTime 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

      FeedSpec<YearMonth> yearMonthSpec(String propertyName)
      Returns a YearMonth 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

      FeedSpec<Year> yearSpec(String propertyName)
      Returns a Year 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

      FeedSpec<UUID> uuidSpec(String propertyName)
      Returns a UUID 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