Serializable
public abstract static class AbstractLookup.Pair<T> extends Lookup.Item<T> implements Serializable
Modifier | Constructor | Description |
---|---|---|
protected |
Pair() |
For use by subclasses.
|
Modifier and Type | Method | 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, toString
protected 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.
protected abstract boolean creatorOf(Object obj)
obj
- the instanceBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.