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

java.lang.Object
  extended by org.drools.factmodel.traits.Key<T>
All Implemented Interfaces:
Serializable, LatticeElement<T>
Direct Known Subclasses:
BitMaskKey

public abstract class Key<T>
extends Object
implements LatticeElement<T>, 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
 
Methods inherited from interface org.drools.factmodel.traits.LatticeElement
getBitMask
 

Constructor Detail

Key

public Key(int id,
           T value)
Method Detail

getValue

public T getValue()
Specified by:
getValue in interface LatticeElement<T>

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-2014 JBoss by Red Hat. All Rights Reserved.