de.spieleck.util
Class Strings
java.lang.Object
|
+--de.spieleck.util.Strings
- public class Strings
- extends java.lang.Object
A class to represent a list of strings with appropriate
hashCode and equals implemented.
I'm surprised, that this is needed instead of String[].
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Strings
public Strings(int n)
Strings
public Strings(java.lang.String[] strs)
setString
public void setString(int i,
java.lang.String h)
getLength
public int getLength()
getString
public java.lang.String getString(int i)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object