conversion
Class NamedNamer<T extends Named>

java.lang.Object
  extended by conversion.NamedNamer<T>
All Implemented Interfaces:
Namer<T>

public class NamedNamer<T extends Named>
extends java.lang.Object
implements Namer<T>

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

NamedNamer

public NamedNamer()
Method Detail

getName

public 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.

Specified by:
getName in interface Namer<T extends Named>
Parameters:
t - the object to be named
Returns:
t.getName()