BooleanOperator.java :  » App » edgelibrarylib » uk » org » aspellclark » bibliotheca » model » Android Open Source

Android Open Source » App » edgelibrarylib 
edgelibrarylib » uk » org » aspellclark » bibliotheca » model » BooleanOperator.java
package uk.org.aspellclark.bibliotheca.model;

public final class BooleanOperator {

  public static final BooleanOperator AND = new BooleanOperator();
  public static final BooleanOperator OR = new BooleanOperator();
  public static final BooleanOperator ANDNOT = new BooleanOperator();
  public static final BooleanOperator ORNOT = new BooleanOperator();

  private BooleanOperator() {
  }

  @Override
  public String toString() {

    if (this == AND) {
      return "And";
    }
    if (this == ANDNOT) {
      return "AndNot";
    }
    if (this == ORNOT) {
      return "OrNot";
    }
    if (this == OR) {
      return "Or";
    }
    return "Unknown";
  }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.