com.gisgraphy.domain.valueobject
Class NameValueDTO<T>
java.lang.Object
com.gisgraphy.domain.valueobject.NameValueDTO<T>
- Type Parameters:
T
- the type of the value
public class NameValueDTO<T>
- extends Object
A simple DTO that associate a name to an Object
- Author:
- David Masclet
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NameValueDTO
public NameValueDTO(String name,
T value)
- Default Constructor
- Parameters:
name
- The name of the objectvalue
- The value
getName
public String getName()
- Returns:
- the name
getValue
public T getValue()
- Returns:
- the value
Copyright © 2012. All Rights Reserved.