com.gisgraphy.domain.valueobject
Class NameValueDTO<T>

java.lang.Object
  extended by com.gisgraphy.domain.valueobject.NameValueDTO<T>
Type Parameters:
T - the type of the value

public class NameValueDTO<T>
extends java.lang.Object

A simple DTO that associate a name to an Object

Author:
David Masclet

Constructor Summary
NameValueDTO(java.lang.String name, T value)
          Default Constructor
 
Method Summary
 java.lang.String getName()
           
 T getValue()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameValueDTO

public NameValueDTO(java.lang.String name,
                    T value)
Default Constructor

Parameters:
name - The name of the object
value - The value
Method Detail

getName

public java.lang.String getName()
Returns:
the name

getValue

public T getValue()
Returns:
the value


Copyright © 2010. All Rights Reserved.