Interface Argument<T>

Type Parameters:
T - the type of the payload

public interface Argument<T>
Named is a container that associates a name with a given payload.
Since:
5.8
  • Method Details

    • ofBoolean

      static Argument<Boolean> ofBoolean(boolean value)
      Method to create an Argument of type boolean
      Parameters:
      value - value
      Returns:
      an Argument
    • ofByte

      static Argument<Byte> ofByte(byte value)
      Method to create an Argument of type byte
      Parameters:
      value - value
      Returns:
      an Argument
    • ofChar

      static Argument<Character> ofChar(char value)
      Method to create an Argument of type char
      Parameters:
      value - value
      Returns:
      an Argument
    • ofShort

      static Argument<Short> ofShort(short value)
      Method to create an Argument of type short
      Parameters:
      value - value
      Returns:
      an Argument
    • ofInt

      static Argument<Integer> ofInt(int value)
      Method to create an Argument of type int
      Parameters:
      value - value
      Returns:
      an Argument
    • ofLong

      static Argument<Long> ofLong(long value)
      Method to create an Argument of type long
      Parameters:
      value - value
      Returns:
      an Argument
    • ofFloat

      static Argument<Float> ofFloat(float value)
      Method to create an Argument of type float
      Parameters:
      value - value
      Returns:
      an Argument
    • ofDouble

      static Argument<Double> ofDouble(double value)
      Method to create an Argument of type double
      Parameters:
      value - value
      Returns:
      an Argument
    • ofString

      static Argument<String> ofString(String value)
      Method to create an Argument of type String
      Parameters:
      value - value
      Returns:
      an Argument
    • ofBigInteger

      static Argument<BigInteger> ofBigInteger(BigInteger value)
      Method to create an Argument of type BigInteger
      Parameters:
      value - value
      Returns:
      an Argument
    • ofBigDecimal

      static Argument<BigDecimal> ofBigDecimal(BigDecimal value)
      Method to create an Argument of type BigDecimal
      Parameters:
      value - value
      Returns:
      an Argument
    • of

      static <T> Argument<T> of(String name, T payload)
      Method to create an Argument of type T
      Type Parameters:
      T - type T
      Parameters:
      name - name
      payload - payload
      Returns:
      an Argument
    • getName

      String getName()
      Method to get the Argument name
      Returns:
      the Argument name
    • getPayload

      T getPayload()
      Method to get the Argument payload
      Returns:
      the Argument payload