com.isti.trinetwatch.ruleset
Interface IComparisonValue

All Known Implementing Classes:
ComparisonValue

public interface IComparisonValue


Method Summary
 java.lang.Number getNumber()
          Gets the value as a number.
 java.lang.Object getValue()
          Returns the value.
 boolean matches(java.lang.Object val)
          Checks if the given object 'val' matches the 'value'.
 

Method Detail

matches

boolean matches(java.lang.Object val)
Checks if the given object 'val' matches the 'value'.

Parameters:
val - a value object.
Returns:
true if the given object 'val' matches the 'value', false otherwise.
Throws:
java.lang.ClassCastException - if the specified object's type prevents it from being compared to this object.

getNumber

java.lang.Number getNumber()
Gets the value as a number.

Returns:
the value as a number or null if it is not a number.

getValue

java.lang.Object getValue()
Returns the value.

Returns:
the value.