public abstract static class AbstractLookup.Pair<T> extends Lookup.Item<T> implements Serializable
| Modifier | Constructor and Description |
|---|---|
protected |
Pair()
For use by subclasses.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
creatorOf(Object obj)
Method that can test whether an instance of a class has been created
by this item.
|
protected abstract boolean |
instanceOf(Class<?> c)
Tests whether this item can produce object
of class c.
|
getDisplayName, getId, getInstance, getType, toStringprotected abstract boolean instanceOf(Class<?> c)
Typically this will produce the same result as
c.isAssignableFrom(getType())
but may avoid loading the concrete type's class in doing so.
c - class to check againstprotected abstract boolean creatorOf(Object obj)
obj - the instance