| 
 | Jacson | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.spieleck.util.Strings
A class to represent a list of strings with appropriate hashCode and equals implemented.
I'm surprised, that this is needed instead of String[].
| Constructor Summary | |
| Strings(int n)Empty Strings | |
| Strings(java.lang.String[] strs)Directly wrap given String-array | |
| Method Summary | |
|  boolean | equals(java.lang.Object o)provide a working overall equals() | 
|  int | getLength() | 
|  java.lang.String | getString(int i) | 
|  int | hashCode()provide a working overall hashCode. | 
|  void | setString(int i,
          java.lang.String h)Modify a particular String in the array | 
|  java.lang.String | toString() | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
public Strings(int n)
public Strings(java.lang.String[] strs)
| Method Detail | 
public void setString(int i,
                      java.lang.String h)
i - the position in the array.h - the value to set.public int getLength()
public java.lang.String getString(int i)
public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
| 
 | Spieleck | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||