|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjsky.catalog.AbstractSearchCondition
jsky.catalog.ArraySearchCondition
public class ArraySearchCondition
Represents a search condition with an array of possible values. The condition evaluates to true, if any one of the values in the array match.
Constructor Summary | |
---|---|
ArraySearchCondition(FieldDesc fieldDesc,
java.lang.Object[] values)
Create a new ArraySearchCondition with the given values. |
Method Summary | |
---|---|
java.lang.String |
getValueAsString()
Return the values as a String in the format "val1,val2,val3". |
java.lang.Object[] |
getValues()
Return the array of values |
boolean |
isTrueFor(java.lang.Comparable val)
Return true if the condition is true for the given value. |
boolean |
isTrueFor(double val)
Return true if the condition is true for the given numeric value. |
static void |
main(java.lang.String[] args)
Test cases |
Methods inherited from class jsky.catalog.AbstractSearchCondition |
---|
getFieldDesc, getId, getName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ArraySearchCondition(FieldDesc fieldDesc, java.lang.Object[] values)
Method Detail |
---|
public java.lang.Object[] getValues()
public boolean isTrueFor(java.lang.Comparable val)
val
- The value to be checked against the condition.
public boolean isTrueFor(double val)
val
- The value to be checked against the condition.
public java.lang.String getValueAsString()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |