public static class SimpleFormatters.PartSeq extends java.lang.Object implements Formatter
Formatter
the format
method of
which concatenates several parts of the given TextStore
.Constructor and Description |
---|
PartSeq(int from,
int to) |
PartSeq(int from,
int to,
java.lang.String sep,
int partFrom,
int partTo)
the parameters define the range of parts to be concatenated
by the
format method. |
Modifier and Type | Method and Description |
---|---|
void |
format(java.lang.StringBuilder sb,
TextStore sp,
java.util.Map<java.lang.Object,java.lang.Object> m)
arranges (some of) the pieces of text found in
st
or m in an implementation dependend manner and
appends them to out . |
public PartSeq(int from, int to, java.lang.String sep, int partFrom, int partTo)
the parameters define the range of parts to be concatenated
by the format
method. Similar to TextStore indexing both
int
parameters may be negative. If the
sep
is not null
it serves to separate
the the parts in the output.
public PartSeq(int from, int to)
public void format(java.lang.StringBuilder sb, TextStore sp, java.util.Map<java.lang.Object,java.lang.Object> m)
Formatter
arranges (some of) the pieces of text found in st
or m
in an implementation dependend manner and
appends them to out
. Depending on the
implementation, both, st
and m
or even
both may be allowed to be null
.
Postcondition: This method may not change the content of
dest
other than by appending to it.