Class Argument.Empty

java.lang.Object
org.verifyica.api.Argument.Empty
All Implemented Interfaces:
Argument<Object>, Named
Enclosing interface:
Argument<T>

public static class Argument.Empty extends Object implements Argument<Object>
Class to implement Empty
  • Method Details

    • getName

      public String getName()
      Description copied from interface: Named
      Method to get the name
      Specified by:
      getName in interface Argument<Object>
      Specified by:
      getName in interface Named
      Returns:
      the name
    • getPayload

      public Object getPayload()
      Description copied from interface: Argument
      Method to get the Argument payload
      Specified by:
      getPayload in interface Argument<Object>
      Returns:
      the Argument payload
    • getPayload

      public <V> V getPayload(Class<V> type)
      Description copied from interface: Argument
      Method to get the Argument payload
      Specified by:
      getPayload in interface Argument<Object>
      Type Parameters:
      V - the return type
      Parameters:
      type - type
      Returns:
      the Argument payload
    • hasPayload

      public boolean hasPayload()
      Description copied from interface: Argument
      Method to return if the Argument has a non-null payload
      Specified by:
      hasPayload in interface Argument<Object>
      Returns:
      true if the Argument payload is not null, else false
    • toString

      public String toString()
      Overrides:
      toString in class Object