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, 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 June 4 2024. | Copyright © 2017-2024 Apache Software Foundation. All Rights Reserved.