Freezed.java :  » Project-Management » airTODO » org » airtodo » db » types » Java Open Source

Java Open Source » Project Management » airTODO 
airTODO » org » airtodo » db » types » Freezed.java
package org.airtodo.db.types;

import java.io.Serializable;

public class Freezed implements Serializable, Comparable {
  private boolean value;

  public Freezed(boolean value) {
    super();
    this.value = value;
  }

  public boolean getValue() {
    return value;
  }

  public void setValue(boolean value) {
    this.value = value;
  }

  public int compareTo(Object o) {
    if (o instanceof Freezed)
      return new Boolean(value).compareTo(((Freezed) o).value);
    return 1;
  }

  @Override
  public String toString() {
    return String.valueOf(value);
  }
}
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.