Class ObjectMediator<A>

Type Parameters:
A - is the type of the argument of an ObjectMediator.

public final class ObjectMediator<A> extends AbstractObjectMediator<A>
A ObjectMediator is not mutable.
Author:
Silvan Wyss
  • Method Details

    • forArgumentAndArgumentName

      public static <T> ObjectMediator<T> forArgumentAndArgumentName(T argument, String argumentName)
      Type Parameters:
      T - is the type of the given argument.
      Parameters:
      argument -
      argumentName -
      Returns:
      a new ObjectMediator for the given argument and argumentName.
      Throws:
      RuntimeException - if the given argumentName is null or blank.