TType - - type that can be converted.public abstract static class BukkitConverters.IgnoreNullConverter<TType> extends Object implements EquivalentConverter<TType>
| Constructor and Description |
|---|
IgnoreNullConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Object |
getGeneric(Class<?> genericType,
TType specific)
Retrieve a copy of the generic type from a specific type.
|
protected abstract Object |
getGenericValue(Class<?> genericType,
TType specific)
Retrieve a copy of the actual generic value.
|
TType |
getSpecific(Object generic)
Retrieve a copy of the specific type using an instance of the generic type.
|
protected abstract TType |
getSpecificValue(Object generic)
Retrieve a copy of the specific type using an instance of the generic type.
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitgetSpecificTypepublic final Object getGeneric(Class<?> genericType, TType specific)
EquivalentConverterThis is usually a native net.minecraft.server type in Minecraft.
getGeneric in interface EquivalentConverter<TType>genericType - - class or super class of the generic type.specific - - the specific type we need to copy.protected abstract Object getGenericValue(Class<?> genericType, TType specific)
genericType - - generic type.specific - - the specific type-public final TType getSpecific(Object generic)
EquivalentConverterThis is usually a wrapper type in the Bukkit API.
getSpecific in interface EquivalentConverter<TType>generic - - the generic type.protected abstract TType getSpecificValue(Object generic)
generic - - generic type.Copyright © 2012–2017 Comphenix and dmulloy2. Licensed under the GNU GPL v2.