Top Methods
com.vladsch.flexmark.util.sequence.builder

public Interface ISequenceBuilder<T extends ISequenceBuilder<T, S>, S extends CharSequence>

extends Appendable
Known Direct Implementers
com.vladsch.flexmark.util.sequence.builder.RichSequenceBuilder, com.vladsch.flexmark.util.sequence.builder.SequenceBuilder, com.vladsch.flexmark.util.sequence.builder.StringSequenceBuilder
Imports
org.jetbrains.annotations.NotNull, .Nullable

Method Summary

Modifier and TypeMethod and Description
public default T
public default T
addAll(Iterable<? extends CharSequence> sequences)

public default T
append(Iterable<? extends CharSequence> sequences)

public default T
append(@Nullable CharSequence
The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.
chars
)

Implements java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.

public default T
append(@Nullable CharSequence chars, int startIndex)

public T
append(@Nullable CharSequence
The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".
chars
,
int
The index of the first character in the subsequence
startIndex
,
int
The index of the character following the last character in the subsequence
endIndex
)

Redeclares java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.

public T
append(char
The character to append
c
)

Redeclares java.lang.Appendable.append.

Appends the specified character to this Appendable.

public T
append(char c, int count)

public char
charAt(int index)

public T
public S

Returns:

sub-sequence of base representing the single segment or null if sequence not representable by a single subsequence
getSingleBasedSequence
()

Note

returns non-null value if the underlying IBasedSegmentBuilder#getBaseSubSequenceRange() returns non-null value

public default boolean
public default boolean
public int
public S

Method Detail

addback to summary
public default T add(@Nullable CharSequence chars)
Annotations
@NotNull
addAllback to summary
public default T addAll(Iterable<? extends CharSequence> sequences)
Annotations
@NotNull
appendback to summary
public default T append(Iterable<? extends CharSequence> sequences)
Annotations
@NotNull
appendback to summary
public default T append(@Nullable CharSequence chars)

Implements java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character sequence to this Appendable.

Depending on which class implements the character sequence csq, the entire sequence may not be appended. For instance, if csq is a java.nio.CharBuffer then the subsequence to append is defined by the buffer's position and limit.

The contents of this Appendable are unspecified if the CharSequence is modified during the method call or an exception is thrown when accessing the CharSequence.

Parameters
chars:@Nullable CharSequence

The character sequence to append. If csq is null, then the four characters "null" are appended to this Appendable.

Returns:T

A reference to this Appendable

Annotations
@NotNull
appendback to summary
public default T append(@Nullable CharSequence chars, int startIndex)
Annotations
@NotNull
appendback to summary
public T append(@Nullable CharSequence chars, int startIndex, int endIndex)

Redeclares java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends a subsequence of the specified character sequence to this Appendable.

An invocation of this method of the form out.append(csq, start, end) when csq is not null, behaves in exactly the same way as the invocation

    out.append(csq.subSequence(start, end)) 

The contents of this Appendable are unspecified if the CharSequence is modified during the method call or an exception is thrown when accessing the CharSequence.

Parameters
chars:@Nullable CharSequence

The character sequence from which a subsequence will be appended. If csq is null, then characters will be appended as if csq contained the four characters "null".

startIndex:int

The index of the first character in the subsequence

endIndex:int

The index of the character following the last character in the subsequence

Returns:T

A reference to this Appendable

Annotations
@NotNull
appendback to summary
public T append(char c)

Redeclares java.lang.Appendable.append.

Doc from java.lang.Appendable.append.

Appends the specified character to this Appendable.

Parameters
c:char

The character to append

Returns:T

A reference to this Appendable

Annotations
@NotNull
appendback to summary
public T append(char c, int count)
Annotations
@NotNull
charAtback to summary
public char charAt(int index)
getBuilderback to summary
public T getBuilder()
Annotations
@NotNull
getSingleBasedSequenceback to summary
public S getSingleBasedSequence()

Note

returns non-null value if the underlying IBasedSegmentBuilder#getBaseSubSequenceRange() returns non-null value

Returns:S

sub-sequence of base representing the single segment or null if sequence not representable by a single subsequence

Annotations
@Nullable
isEmptyback to summary
public default boolean isEmpty()
isNotEmptyback to summary
public default boolean isNotEmpty()
lengthback to summary
public int length()
toSequenceback to summary
public S toSequence()
Annotations
@NotNull