Class GrabberStringifier<T,G>

java.lang.Object
net.ontopia.utils.GrabberStringifier<T,G>
All Implemented Interfaces:
Function<T,String>

public class GrabberStringifier<T,G> extends Object implements Function<T,String>
INTERNAL: Stringifies the object that the grabber grabs. DefaultStringifier will be used if no nested stringifier is specified.

  • Field Details

  • Constructor Details

    • GrabberStringifier

      public GrabberStringifier(Function<T,G> grabber)
    • GrabberStringifier

      public GrabberStringifier(Function<T,G> grabber, Function<? super G,String> stringifier)
  • Method Details

    • setGrabber

      public void setGrabber(Function<T,G> grabber)
      Set the grabber which is to be used.
    • setStringifier

      public void setStringifier(Function<? super G,String> stringifier)
      Set the stringifier which is to be used.
    • apply

      public String apply(T object)
      Specified by:
      apply in interface Function<T,G>