当前页面:
在线文档首页 >
NetBeans API Javadoc (Current Development Version)
AbstractLookup.Pair (Utilities API) - NetBeans API Javadoc (Current Development Version)
org.openide.util.lookup
Class AbstractLookup.Pair<T>
java.lang.Object
org.openide.util.Lookup.Item<T>
org.openide.util.lookup.AbstractLookup.Pair<T>
- All Implemented Interfaces:
- Serializable
- Enclosing class:
- AbstractLookup
public abstract static class AbstractLookup.Pair<T>
- extends Lookup.Item<T>
- implements Serializable
Extension to the default lookup item that offers additional information
for the data structures use in AbstractLookup
- See Also:
- Serialized Form
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. |
AbstractLookup.Pair
protected AbstractLookup.Pair()
- For use by subclasses.
instanceOf
protected abstract boolean instanceOf(Class<?> c)
- Tests whether this item can produce object
of class c.
creatorOf
protected abstract boolean creatorOf(Object obj)
- Method that can test whether an instance of a class has been created
by this item.
- Parameters:
obj
- the instance
- Returns:
- if the item has already create an instance and it is the same
as obj.