Class ArgumentPair.ArgumentPairIntermediaryBuilder<C,​U,​V>

  • Enclosing class:
    ArgumentPair<C,​U,​V,​O>

    public static final class ArgumentPair.ArgumentPairIntermediaryBuilder<C,​U,​V>
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      @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
      <O> @NonNull ArgumentPair<C,​U,​V,​O> withMapper​(@NonNull io.leangen.geantyref.TypeToken<O> clazz, @NonNull java.util.function.BiFunction<@NonNull C,​@NonNull Pair<@NonNull U,​@NonNull V>,​@NonNull O> mapper)
      Create an argument pair that maps to a specific type
      <O> @NonNull ArgumentPair<@NonNull C,​@NonNull U,​@NonNull V,​@NonNull O> withMapper​(@NonNull java.lang.Class<O> clazz, @NonNull java.util.function.BiFunction<@NonNull C,​@NonNull Pair<@NonNull U,​@NonNull V>,​@NonNull O> mapper)
      Create an argument pair that maps to a specific type
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • 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 java.util.function.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 java.lang.Class<O> clazz,
                                                                                                                   @NonNull java.util.function.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