|
org.openide.util.lookup 8.19.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.Lookup.Item<T>
org.openide.util.lookup.AbstractLookup.Pair<T>
public abstract static class AbstractLookup.Pair<T>
Extension to the default lookup item that offers additional information for the data structures use in AbstractLookup
| Constructor Summary | |
|---|---|
protected |
AbstractLookup.Pair()
For use by subclasses. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.openide.util.Lookup.Item |
|---|
getDisplayName, getId, getInstance, getType, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractLookup.Pair()
| Method Detail |
|---|
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 instance
|
org.openide.util.lookup 8.19.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||