FileDocCategorySizeDatePackage
SearchBoolean.javaAPI DocExample1306Mon Apr 03 17:21:48 BST 2000com.imaginary.lwp

SearchBoolean

public class SearchBoolean extends Object implements Serializable

Fields Summary
public static SearchBoolean
AND
public static SearchBoolean
OR
static final long
serialVersionUID
private int
searchBoolean
An internal flag describing how this binding relates to the previous binding in a search criteria.
Constructors Summary
public SearchBoolean()

    
      
        super();
    
private SearchBoolean(int sb)

        super();
        searchBoolean = sb;
    
Methods Summary
public booleanequals(java.lang.Object ob)

        if( ob instanceof SearchBoolean ) {
            SearchBoolean op = (SearchBoolean)ob;

            return (op.searchBoolean == searchBoolean);
        }
        else {
            return false;
        }
    
public inthashCode()

        return searchBoolean;
    
public java.lang.StringtoString()

        switch( searchBoolean ) {
        case 1:
            {
                return "AND";
            }
        case 2:
            {
                return "OR";
            }
        default:
            {
                return "UNKNOWN";
            }
        }