public static class KeyTypeInfo.Builder
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
KeyTypeInfo.Builder.KeyFunctionBuilder<T,U> |
| Modifier and Type | Method and Description |
|---|---|
KeyTypeInfo |
build()
Build the KeyTypeInfo instance from the data submitted into the builder.
|
<T> KeyTypeInfo.Builder.KeyFunctionBuilder<T,T> |
key(java.lang.Class<T> key)
Begin the process of creating a keyfunction with a class/interface as the key
|
<T,U> KeyTypeInfo.Builder.KeyFunctionBuilder<T,U> |
key(java.lang.Class<T> key,
java.util.function.Function<T,U> mapper)
Begin the process of creating a keyfunction with a class/interface as the key, and a mapper to convert the key to something else
|
public final <T> KeyTypeInfo.Builder.KeyFunctionBuilder<T,T> key(java.lang.Class<T> key)
T - Type generic of key classkey - Key classpublic final <T,U> KeyTypeInfo.Builder.KeyFunctionBuilder<T,U> key(java.lang.Class<T> key, java.util.function.Function<T,U> mapper)
T - Type generic of key classU - Type generic of the mapped keykey - Key classmapper - Optional mapping of keypublic KeyTypeInfo build()