|
org.openide.util 7.9.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openide.util.Lookup.Template<T>
public static final class Lookup.Template<T>
Template defining a pattern to filter instances by.
| Constructor Summary | |
|---|---|
Lookup.Template()
Deprecated. Use new Template (Object.class) which
is going to be better typed with JDK1.5 templates and should produce
the same result. |
|
Lookup.Template(Class<T> type)
Create a simple template matching by class. |
|
Lookup.Template(Class<T> type,
String id,
T instance)
Constructor to create new template. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getId()
Get the persistent identifier being searched for, if any. |
T |
getInstance()
Get the specific instance being searched for, if any. |
Class<T> |
getType()
Get the class (or superclass or interface) to search for. |
int |
hashCode()
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated public Lookup.Template()
new Template (Object.class) which
is going to be better typed with JDK1.5 templates and should produce
the same result.
public Lookup.Template(Class<T> type)
type - the class of service we are looking for (subclasses will match)public Lookup.Template(Class<T> type, String id, T instance)
type - the class of service we are looking for or null to leave unspecifiedid - the ID of the item/service we are looking for or null to leave unspecifiedinstance - a specific known instance to look for or null to leave unspecified| Method Detail |
|---|
public Class<T> getType()
Object is used as
this will match any instance.
public String getId()
nullLookup.Item.getId()public T getInstance()
Item when the instance
is already known.
nullpublic int hashCode()
public boolean equals(Object obj)
public String toString()
|
org.openide.util 7.9.0 1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||