Class StringValueExtractor

java.lang.Object
microsim.reflection.AbstractValueExtractor
microsim.reflection.StringValueExtractor

public class StringValueExtractor extends AbstractValueExtractor
See Also:
  • Constructor Details

  • Method Details

    • getString

      @Nullable public @Nullable String getString(@NonNull @NonNull Object target)
      Invokes the method of the target object and return its string result.
      Parameters:
      target - An object containing the method.
      Returns:
      The requested string value.
    • getString

      @Nullable public @Nullable String getString()
      Invokes the method of the object passed to constructor and return its string result.
      Returns:
      the requested string value.
    • getStringValue

      @Nullable public @Nullable String getStringValue(int ignoredValueID)
      This is an implementation of the StringSource interface. It calls the getString() method.
      Parameters:
      ignoredValueID - This parameter is ignored. It is put for compatibility with the StringSource interface.
      Returns:
      The requested string value.
    • getCollectionValue

      @NonNull public @NonNull String[] getCollectionValue(@NonNull @NonNull Collection<?> c)