org.terracotta.util
Class TerracottaTextBucket
java.lang.Object
org.terracotta.util.TerracottaTextBucket
- All Implemented Interfaces:
- Appendable, CharSequence, ClusteredTextBucket
public class TerracottaTextBucket
- extends Object
- implements ClusteredTextBucket
TerracottaTextBucket
public TerracottaTextBucket()
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.