|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object conversion.NamedNamer<T>
public class NamedNamer<T extends Named>
A NamedNamer names objects that implement the Named
interface using their Named.getName()
method.
Constructor Summary | |
---|---|
NamedNamer()
|
Method Summary | |
---|---|
java.lang.String |
getName(T t)
nn.getName(t) returns nn's name for t, which is the string returned by t's getName() method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NamedNamer()
Method Detail |
---|
public java.lang.String getName(T t)
getName
in interface Namer<T extends Named>
t
- the object to be named
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |