Class ArgumentPair.ArgumentPairIntermediaryBuilder<C,U,V>

java.lang.Object
cloud.commandframework.arguments.compound.ArgumentPair.ArgumentPairIntermediaryBuilder<C,U,V>
Enclosing class:
ArgumentPair<C,U,V,O>

@API(status=STABLE) public static final class ArgumentPair.ArgumentPairIntermediaryBuilder<C,U,V> extends Object
  • Method Details

    • simple

      public @NonNull ArgumentPair<@NonNull C,@NonNull U,@NonNull V,@NonNull Pair<@NonNull U,@NonNull V>> simple()
      Create a simple argument pair that maps to a pair
      Returns:
      Argument pair
    • withMapper

      public <O> @NonNull ArgumentPair<C,U,V,O> withMapper(@NonNull io.leangen.geantyref.TypeToken<O> clazz, @NonNull BiFunction<@NonNull C,@NonNull Pair<@NonNull U,@NonNull V>,@NonNull O> mapper)
      Create an argument pair that maps to a specific type
      Type Parameters:
      O - Output type
      Parameters:
      clazz - Output class
      mapper - Output mapper
      Returns:
      Created pair
    • withMapper

      public <O> @NonNull ArgumentPair<@NonNull C,@NonNull U,@NonNull V,@NonNull O> withMapper(@NonNull Class<O> clazz, @NonNull BiFunction<@NonNull C,@NonNull Pair<@NonNull U,@NonNull V>,@NonNull O> mapper)
      Create an argument pair that maps to a specific type
      Type Parameters:
      O - Output type
      Parameters:
      clazz - Output class
      mapper - Output mapper
      Returns:
      Created pair