org.drools.factmodel.traits
Class Key<T>

java.lang.Object
  extended by org.drools.factmodel.traits.Key<T>
All Implemented Interfaces:
Serializable

public class Key<T>
extends Object
implements Serializable

See Also:
Serialized Form

Constructor Summary
Key(int id, T value)
           
 
Method Summary
 boolean equals(Object o)
           
 int getId()
           
 T getValue()
           
 int hashCode()
           
 void setId(int id)
           
 void setValue(T value)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Key

public Key(int id,
           T value)
Method Detail

getValue

public T getValue()

setValue

public void setValue(T value)

getId

public int getId()

setId

public void setId(int id)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.