org.crsh.text
Class Text

java.lang.Object
  extended by org.crsh.text.Text
All Implemented Interfaces:
Serializable, Chunk

public class Text
extends Object
implements Chunk

A textual chunk.

See Also:
Serialized Form

Field Summary
(package private)  CharSequence value
          .
 
Constructor Summary
private Text(CharSequence s)
           
 
Method Summary
static Text create(CharSequence s)
          Create a new text chunk wrapping the provided sequence.
 boolean equals(Object obj)
           
 CharSequence getText()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

final CharSequence value
.

Constructor Detail

Text

private Text(CharSequence s)
Method Detail

create

public static Text create(CharSequence s)
                   throws NullPointerException
Create a new text chunk wrapping the provided sequence.

Parameters:
s - the sequence
Returns:
the created text
Throws:
NullPointerException - if the sequence is null

getText

public CharSequence getText()

equals

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

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014 eXo Platform SAS. All Rights Reserved.