org.norther.tammi.root.rt.util
Class VariableId<T>

java.lang.Object
  extended by org.norther.tammi.root.rt.util.VariableId<T>
Type Parameters:
T - the id type.
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
IntegerId, LongId, StringId

public class VariableId<T>
extends Object
implements Serializable

A composite variable id.

Version:
$Id: VariableId.java,v 1.5 2009/10/29 21:39:58 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
VariableId()
          Constructs a new id.
 
Method Summary
 boolean equals(Object o)
           
 T getAttribute(String name)
          Gets the named id attribute.
static Class<?> getIdType()
          Gets the id type.
 int hashCode()
           
 void setAttribute(String name, T id)
          Sets the named id attribute.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VariableId

public VariableId()
Constructs a new id.

Method Detail

getIdType

public static Class<?> getIdType()
Gets the id type.

Returns:
the id type.

getAttribute

public T getAttribute(String name)
Gets the named id attribute.

Parameters:
name - the attribute name.
Returns:
the attribute value.

setAttribute

public void setAttribute(String name,
                         T id)
Sets the named id attribute.

Parameters:
name - the attribute name.
id - the attribute value.

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2004 The Norther Organization. All rights reserved.