|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.sim.kiem.config.data.AbstractStringWrapper
public abstract class AbstractStringWrapper
A wrapper for a string.
Can be used to ensure type safety of operations that would normally get a String as parameter and that String really encodes an identifier.
Constructor Summary | |
---|---|
AbstractStringWrapper(String string)
Creates a new AbstractStringWrapper. |
Method Summary | |
---|---|
int |
compareTo(Object another)
Compares this with another Object. |
boolean |
equals(Object another)
|
String |
getString()
Getter for the contained string. |
int |
hashCode()
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public AbstractStringWrapper(String string)
string
- the string that should be wrapped.Method Detail |
---|
public String getString()
public int compareTo(Object another)
compareTo
in interface Comparable<Object>
another
- the object to compare with
public boolean equals(Object another)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |