01: package org.airtodo.db.types;
02:
03: import java.io.Serializable;
04:
05: public class Freezed implements Serializable, Comparable {
06: private boolean value;
07:
08: public Freezed(boolean value) {
09: super ();
10: this .value = value;
11: }
12:
13: public boolean getValue() {
14: return value;
15: }
16:
17: public void setValue(boolean value) {
18: this .value = value;
19: }
20:
21: public int compareTo(Object o) {
22: if (o instanceof Freezed)
23: return new Boolean(value).compareTo(((Freezed) o).value);
24: return 1;
25: }
26:
27: @Override
28: public String toString() {
29: return String.valueOf(value);
30: }
31: }
|