org.mindswap.pellet.rete
Class Constant

java.lang.Object
  extended by org.mindswap.pellet.rete.Constant
All Implemented Interfaces:
Term

public class Constant
extends java.lang.Object
implements Term


Constructor Summary
Constant()
          Creates a null constant.
Constant(java.lang.String value)
          Creates a constant.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks if this constant is equal to some other constant.
 java.lang.String getValue()
           
 int hashCode()
           
 java.lang.String toString()
          Converts this constant to a string.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Constant

public Constant()
Creates a null constant.


Constant

public Constant(java.lang.String value)
Creates a constant.

Parameters:
value - the value of the constant
Method Detail

getValue

public java.lang.String getValue()

toString

public java.lang.String toString()
Converts this constant to a string.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of the constant

equals

public boolean equals(java.lang.Object other)
Checks if this constant is equal to some other constant.

Overrides:
equals in class java.lang.Object
Parameters:
other - the other constant
Returns:
true if this constant is equal to some other constant

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2007-2009 Natalya Keberle. All Rights Reserved.