T
- The type. This should either override Object.equals(Object)
and Object.hashCode()
unless the object
can be compared for equivalence with an identity check.public abstract class PageEntryType<T>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.String,PageEntryType<?>> |
REGISTRY |
Constructor and Description |
---|
PageEntryType() |
Modifier and Type | Method and Description |
---|---|
abstract ISimpleDrawable |
createDrawable(T value) |
abstract T |
deserialise(java.lang.String source) |
abstract java.util.List<java.lang.String> |
getTooltip(T value) |
boolean |
matches(T target,
java.lang.Object value) |
static void |
register(java.lang.String id,
PageEntryType<?> type) |
public static final java.util.Map<java.lang.String,PageEntryType<?>> REGISTRY
public static void register(java.lang.String id, PageEntryType<?> type)
@Nullable public abstract T deserialise(java.lang.String source)
public boolean matches(T target, java.lang.Object value)
target
- A value that has been returned by deserialise(String)
value
- An unknown value.public abstract java.util.List<java.lang.String> getTooltip(T value)
@Nullable public abstract ISimpleDrawable createDrawable(T value)