More information


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[].


Constructor Summary
Strings(int n)
           
Strings(java.lang.String[] strs)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getLength()
           
 java.lang.String getString(int i)
           
 int hashCode()
           
 void setString(int i, java.lang.String h)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Strings

public Strings(int n)

Strings

public Strings(java.lang.String[] strs)
Method Detail

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

More information