Interface Parameter.Key.Builder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> Parameter.Key<T> build​(@NonNull java.lang.String key, @NonNull io.leangen.geantyref.TypeToken<T> typeToken)
      Creates a key with the provided key and value class it represents.
      <T> Parameter.Key<T> build​(@NonNull java.lang.String key, @NonNull java.lang.Class<T> type)
      Creates a key with the provided key and value class it represents.
    • Method Detail

      • build

        <T> Parameter.Key<T> build​(@NonNull java.lang.String key,
                                   @NonNull io.leangen.geantyref.TypeToken<T> typeToken)
        Creates a key with the provided key and value class it represents.
        Type Parameters:
        T - The type of the value represented by the key
        Parameters:
        key - The key
        typeToken - The TypeToken that represents the type of value it stores
        Returns:
        The built Parameter.Key
      • build

        <T> Parameter.Key<T> build​(@NonNull java.lang.String key,
                                   @NonNull java.lang.Class<T> type)
        Creates a key with the provided key and value class it represents.
        Type Parameters:
        T - The type of the value represented by the key
        Parameters:
        key - The key
        type - The Class that represents the non-parameterized type of value it stores
        Returns:
        The built Parameter.Key