Interface AttributeAccessor<P,T>

Type Parameters:
P - The type used as input and that will have some attribute extracted
T - The type of the extracted attribute
All Superinterfaces:
Serializable

public interface AttributeAccessor<P,T> extends Serializable
Extracts attributes from a given input.

  • Method Details

    • apply

      Iterable<SegmentAttribute<T>> apply(P input)
      Extracts the attributes on input.

      Parameters:
      input - the object that will have its attributes extracted
      Returns:
      the extracted attributes and their anchors
    • asScala

      com.here.platform.location.compilation.heremapcontent.AttributeAccessor<P,T> asScala()
    • map

      <T2> AttributeAccessor<P,T2> map(Function<T,T2> f)
      Maps the output of this accessor into some other type.

      Parameters:
      f - the transformation function
      Returns:
      a new accessor that applies the output of this accessor into a different type
      Type Parameters:
      T2 the output parameter of the mapped accessor
    • outputClass

      Class<T> outputClass()