org.terracotta.util
Class TerracottaTextBucket

java.lang.Object
  extended by org.terracotta.util.TerracottaTextBucket
All Implemented Interfaces:
Appendable, CharSequence, ClusteredTextBucket

public class TerracottaTextBucket
extends Object
implements ClusteredTextBucket


Constructor Summary
TerracottaTextBucket()
           
 
Method Summary
 TerracottaTextBucket append(char c)
           
 TerracottaTextBucket append(CharSequence csq)
          Appends the specified CharSequence to this bucket.
 TerracottaTextBucket append(CharSequence csq, int start, int end)
           
 char charAt(int index)
           
 int length()
           
 CharSequence subSequence(int start, int end)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TerracottaTextBucket

public TerracottaTextBucket()
Method Detail

append

public TerracottaTextBucket append(CharSequence csq)
Description copied from interface: ClusteredTextBucket
Appends the specified CharSequence to this bucket.

The characters of this sequence are appended in order, with this bucket growing in length by the length of the argument.

This method modifies the text bucket in an atomic manner with respect to all other bucket mutating methods.

If csq is null then the sequence "null" is appended to the text bucket.

Specified by:
append in interface Appendable
Specified by:
append in interface ClusteredTextBucket

append

public TerracottaTextBucket append(CharSequence csq,
                                   int start,
                                   int end)
Specified by:
append in interface Appendable
Specified by:
append in interface ClusteredTextBucket

append

public TerracottaTextBucket append(char c)
Specified by:
append in interface Appendable
Specified by:
append in interface ClusteredTextBucket

toString

public String toString()
Specified by:
toString in interface CharSequence
Overrides:
toString in class Object

charAt

public char charAt(int index)
Specified by:
charAt in interface CharSequence

length

public int length()
Specified by:
length in interface CharSequence

subSequence

public CharSequence subSequence(int start,
                                int end)
Specified by:
subSequence in interface CharSequence


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.