Package | Description |
---|---|
javolution.text |
Text handling package.
|
Modifier and Type | Field and Description |
---|---|
static Text |
Text.EMPTY
Holds an empty character sequence.
|
Modifier and Type | Method and Description |
---|---|
Text |
Text.concat(Text that)
Concatenates the specified text to the end of this text.
|
Text |
Text.copy() |
Text |
Text.delete(int start,
int end)
Returns the text without the characters between the specified indexes.
|
Text |
Text.insert(int index,
Text txt)
Returns the text having the specified text inserted at
the specified location.
|
Text |
Text.intern()
Returns a text equals to this one from a pool of
unique text instances.
|
Text |
Text.padLeft(int len)
Pads this text on the left with spaces to make the minimum total length
as specified.
|
Text |
Text.padLeft(int len,
char c)
Pads this text on the left to make the minimum total length as specified.
|
Text |
Text.padRight(int len)
Pads this text on the right with spaces to make the minimum total length
as specified.
|
Text |
Text.padRight(int len,
char c)
Pads this text on the right to make the minimum total length as specified.
|
Text |
Text.plus(Object obj)
Returns the concatenation of this text and the textual
representation of the specified object.
|
Text |
Text.plus(String str)
Returns the concatenation of this text and the specified
String (optimization). |
Text |
Text.replace(CharSequence target,
CharSequence replacement)
Replaces each character sequence of this text that matches the specified
target sequence with the specified replacement sequence.
|
Text |
Text.replace(CharSet charSet,
CharSequence replacement)
Replaces the specified characters in this text with the specified
replacement sequence.
|
Text |
Text.subtext(int start)
Returns a portion of this text.
|
Text |
Text.subtext(int start,
int end)
Returns a portion of this text.
|
Text |
Text.toLowerCase()
Converts the characters of this text to lower case.
|
Text |
Text.toText()
Returns
this (implements
Realtime interface). |
Text |
TextBuilder.toText()
Returns the
Text corresponding to this TextBuilder . |
Text |
Text.toUpperCase()
Converts the characters of this text to upper case.
|
Text |
Text.trim()
Returns a copy of this text, with leading and trailing
whitespace omitted.
|
Text |
Text.trimEnd()
Returns a copy of this text, with trailing
whitespace omitted.
|
Text |
Text.trimStart()
Returns a copy of this text, with leading whitespace omitted.
|
Text |
Text.value() |
static Text |
Text.valueOf(boolean b)
Returns the text representation of the
boolean argument. |
static Text |
Text.valueOf(char c)
Returns the text instance corresponding to the specified character.
|
static Text |
Text.valueOf(char[] chars)
Returns the text that contains the characters from the specified
array.
|
static Text |
Text.valueOf(char[] chars,
int offset,
int length)
Returns the text that contains the characters from the specified
subarray of characters.
|
static Text |
Text.valueOf(char c,
int length)
Returns the text that contains a specific length sequence of the
character specified.
|
static Text |
Text.valueOf(double d)
Returns the textual representation of the specified
double
argument. |
static Text |
Text.valueOf(double d,
int digits,
boolean scientific,
boolean showZero)
Returns the textual representation of the specified
double
argument formatted as specified. |
static Text |
Text.valueOf(float f)
Returns the textual representation of the specified
float
instance. |
static Text |
Text.valueOf(int i)
Returns the decimal representation of the specified
int
argument. |
static Text |
Text.valueOf(int i,
int radix)
Returns the radix representation of the specified
int
argument. |
static Text |
Text.valueOf(long l)
Returns the decimal representation of the specified
long
argument. |
static Text |
Text.valueOf(long l,
int radix)
Returns the radix representation of the specified
long
argument. |
static Text |
Text.valueOf(Object obj)
Returns the text representing the specified object.
|
Modifier and Type | Method and Description |
---|---|
TextBuilder |
TextBuilder.append(Text txt)
Appends the specified text to this text builder.
|
TextBuilder |
TextBuilder.append(Text txt,
int start,
int end)
Appends a subsequence of the specified text.
|
Text |
Text.concat(Text that)
Concatenates the specified text to the end of this text.
|
Text |
Text.insert(int index,
Text txt)
Returns the text having the specified text inserted at
the specified location.
|
Copyright © 2005-2013 Javolution. All Rights Reserved.