Mp3dings 
20100427

de.mospace.lang
Class FullTextString

java.lang.Object
  extended by de.mospace.lang.FullTextString
All Implemented Interfaces:
Serializable

public final class FullTextString
extends Object
implements Serializable

An immutable String with multiple lines. Since it is not allowed in Java to subclass String I had to use this pretty ugly construct which is nothing more than a wrapper around a String (needed for JTable where cell renderer and cell editor are determined from the column class.)

Version:
$Revision: 12 $ ($Date: 2007-07-27 11:48:53 +0200 (Fr, 27 Jul 2007) $)
Author:
Moritz Ringler
See Also:
Serialized Form

Constructor Summary
FullTextString(FullTextString fts)
          Clones an existing FullTextString.
FullTextString(String fts)
          Constructs a new instance of this class.
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
          Returns a reference to the internal String.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FullTextString

public FullTextString(String fts)
Constructs a new instance of this class.

Parameters:
fts - the (multi-line) String that will be returned by the toString() method
See Also:
toString()

FullTextString

public FullTextString(FullTextString fts)
Clones an existing FullTextString.

Parameters:
fts - the FullTextString to clone
Method Detail

toString

public String toString()
Returns a reference to the internal String. Manipulating the returned String will change the state of this object.

Overrides:
toString in class Object
Returns:
the FullTextString as a String

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

Mp3dings 
20100427