Class StringExtractor

java.lang.Object
com.sap.cloud.sdk.result.StringExtractor
All Implemented Interfaces:
ObjectExtractor<String>

public class StringExtractor extends Object implements ObjectExtractor<String>
ObjectExtractor implementation transforming a given ResultElement to a String.
  • Constructor Details

    • StringExtractor

      public StringExtractor()
  • Method Details

    • extract

      @Nonnull public String extract(@Nonnull ResultElement resultElement)
      Description copied from interface: ObjectExtractor
      Extracts the value of the given ResultElement as the type T.
      Specified by:
      extract in interface ObjectExtractor<String>
      Parameters:
      resultElement - The ResultElement to transform.
      Returns:
      The resultElement as the given type.