[Swift-commit] r2584 - trunk/src/org/griphyn/vdl/util
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Feb 22 11:26:28 CST 2009
Author: benc
Date: 2009-02-22 11:26:27 -0600 (Sun, 22 Feb 2009)
New Revision: 2584
Modified:
trunk/src/org/griphyn/vdl/util/TriStateBoolean.java
Log:
Tidy whitespace
Modified: trunk/src/org/griphyn/vdl/util/TriStateBoolean.java
===================================================================
--- trunk/src/org/griphyn/vdl/util/TriStateBoolean.java 2009-02-22 17:02:54 UTC (rev 2583)
+++ trunk/src/org/griphyn/vdl/util/TriStateBoolean.java 2009-02-22 17:26:27 UTC (rev 2584)
@@ -4,7 +4,7 @@
package org.griphyn.vdl.util;
public final class TriStateBoolean {
- public static final TriStateBoolean FALSE = new TriStateBoolean(0);
+ public static final TriStateBoolean FALSE = new TriStateBoolean(0);
public static final TriStateBoolean TRUE = new TriStateBoolean(1);
public static final TriStateBoolean MAYBE = new TriStateBoolean(2);
@@ -14,36 +14,36 @@
this.value = value;
}
- public boolean equals(Object obj) {
- if (obj instanceof TriStateBoolean) {
- return value == ((TriStateBoolean) obj).value;
+ public boolean equals(Object obj) {
+ if (obj instanceof TriStateBoolean) {
+ return value == ((TriStateBoolean) obj).value;
}
else {
- return false;
+ return false;
}
- }
+ }
- public int hashCode() {
- return value;
- }
+ public int hashCode() {
+ return value;
+ }
- public String toString() {
- switch(value) {
+ public String toString() {
+ switch(value) {
case 0: return "false";
case 1: return "true";
default: return "maybe";
}
- }
+ }
public static TriStateBoolean valueOf(String value) {
- if ("false".equalsIgnoreCase(value) || "no".equalsIgnoreCase(value)) {
- return FALSE;
+ if ("false".equalsIgnoreCase(value) || "no".equalsIgnoreCase(value)) {
+ return FALSE;
}
else if ("true".equalsIgnoreCase(value) || "yes".equalsIgnoreCase(value)) {
return TRUE;
}
else {
- return MAYBE;
+ return MAYBE;
}
}
}
More information about the Swift-commit
mailing list