[jdom-interest] Text class
Brett McLaughlin
brett at newInstance.com
Sat May 26 17:03:09 PDT 2001
Here's where we're at:
public class Text {
private StringBuffer value;
protected Text() { }
public Text(String stringValue) {
value = new StringBuffer(stringValue);
}
public String getValue() {
return value.toString();
}
public void setValue(String stringValue) {
value = new StringBuffer(stringValue);
}
public void append(String stringValue) {
value.append(stringValue);
}
public String toString() {
return getValue();
}
public int hashCode() {
return value.toString().hashCode();
}
// Leaving out impl for now on below here
public boolean equals(Object ob);
}
OK. Now we can discuss. What you think?
-Brett
More information about the jdom-interest
mailing list