Interface ResultElementFactory<ResultElementT>

Type Parameters:
ResultElementT - The type of the object to create the ResultElement from.
All Known Implementing Classes:
GsonResultElementFactory, SoapGsonResultElementFactory

public interface ResultElementFactory<ResultElementT>
Factory interface to encapsulating different ways to create a ResultElement from an arbitrary object.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(ResultElementT resultElement)
    Creates a ResultElement based on the given object.
  • Method Details

    • create

      @Nullable ResultElement create(@Nullable ResultElementT resultElement) throws IllegalArgumentException
      Creates a ResultElement based on the given object.
      Parameters:
      resultElement - The object to build the ResultElement from.
      Returns:
      A ResultElement created from the given object.
      Throws:
      IllegalArgumentException - If the given object could not be used to build a ResultElement.