public final class SetParameterTypeFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static SetParameterTypeFactory |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convert(java.util.List<java.lang.Object> items,
java.lang.reflect.Type componentType) |
<T> @Nullable ParameterType<CommandActor,T> |
create(@NotNull java.lang.reflect.Type parameterType,
@NotNull AnnotationList annotations,
@NotNull Lamp<CommandActor> lamp)
Dynamically creates a
ParameterType |
protected java.lang.reflect.Type |
getElementType(@NotNull java.lang.reflect.Type type) |
protected boolean |
matchType(@NotNull java.lang.reflect.Type type,
@NotNull java.lang.Class<?> rawType) |
protected boolean |
preventsDuplicates() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforType, forTypeAndSubclassespublic static final SetParameterTypeFactory INSTANCE
protected boolean matchType(@NotNull
@NotNull java.lang.reflect.Type type,
@NotNull
@NotNull java.lang.Class<?> rawType)
protected java.lang.reflect.Type getElementType(@NotNull
@NotNull java.lang.reflect.Type type)
protected java.lang.Object convert(java.util.List<java.lang.Object> items,
java.lang.reflect.Type componentType)
protected boolean preventsDuplicates()
@Nullable public <T> @Nullable ParameterType<CommandActor,T> create(@NotNull @NotNull java.lang.reflect.Type parameterType, @NotNull @NotNull AnnotationList annotations, @NotNull @NotNull Lamp<CommandActor> lamp)
ParameterType.FactoryParameterTypecreate in interface ParameterType.Factory<CommandActor>T - The parameter typeparameterType - The command parameter to create forannotations - The parameter annotationslamp - The Lamp instance (for referencing other parameter types)ParameterType, or null if this factory
cannot deal with it.