java.io.Serializablepublic abstract static class AbstractLookup.Pair<T> extends Lookup.Item<T> implements java.io.Serializable
| Modifier | Constructor | Description |
|---|---|---|
protected |
Pair() |
For use by subclasses.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract boolean |
creatorOf(java.lang.Object obj) |
Method that can test whether an instance of a class has been created
by this item.
|
protected abstract boolean |
instanceOf(java.lang.Class<?> c) |
Tests whether this item can produce object
of class c.
|
getDisplayName, getId, getInstance, getType, toStringprotected abstract boolean instanceOf(java.lang.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(java.lang.Object obj)
obj - the instanceBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.