Class SegmentStats
- java.lang.Object
-
- com.vladsch.flexmark.util.sequence.builder.SegmentStats
-
public class SegmentStats extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int
NOT_REPEATED_CHAR
static int
NULL_REPEATED_CHAR
protected int
repeatedChar
protected int
textFirst256Length
protected int
textFirst256SegmentLength
protected int
textFirst256Segments
protected int
textLength
protected int
textSegmentLength
protected int
textSegments
protected int
textSpaceLength
protected int
textSpaceSegmentLength
protected int
textSpaceSegments
protected boolean
trackFirst256
-
Constructor Summary
Constructors Constructor Description SegmentStats(boolean trackFirst256)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(SegmentStats other)
void
addText(char c)
void
addText(char c, int repeat)
void
addText(java.lang.CharSequence text)
void
clear()
SegmentStats
committedCopy()
void
commitText()
int
getTextFirst256Length()
int
getTextFirst256Segments()
int
getTextLength()
int
getTextSegments()
int
getTextSpaceLength()
int
getTextSpaceSegments()
boolean
isEmpty()
boolean
isRepeatedText()
boolean
isTextFirst256()
boolean
isTextRepeatedSpace()
boolean
isTrackTextFirst256()
boolean
isValid()
void
remove(SegmentStats other)
void
removeText(java.lang.CharSequence text)
java.lang.String
toString()
-
-
-
Field Detail
-
NULL_REPEATED_CHAR
public static final int NULL_REPEATED_CHAR
- See Also:
- Constant Field Values
-
NOT_REPEATED_CHAR
public static final int NOT_REPEATED_CHAR
- See Also:
- Constant Field Values
-
textLength
protected int textLength
-
textSegments
protected int textSegments
-
textSegmentLength
protected int textSegmentLength
-
textSpaceLength
protected int textSpaceLength
-
textSpaceSegments
protected int textSpaceSegments
-
textSpaceSegmentLength
protected int textSpaceSegmentLength
-
textFirst256Length
protected int textFirst256Length
-
textFirst256Segments
protected int textFirst256Segments
-
textFirst256SegmentLength
protected int textFirst256SegmentLength
-
repeatedChar
protected int repeatedChar
-
trackFirst256
protected final boolean trackFirst256
-
-
Method Detail
-
getTextLength
public int getTextLength()
-
getTextSpaceLength
public int getTextSpaceLength()
-
getTextFirst256Length
public int getTextFirst256Length()
-
isTrackTextFirst256
public boolean isTrackTextFirst256()
-
getTextSegments
public int getTextSegments()
-
getTextSpaceSegments
public int getTextSpaceSegments()
-
getTextFirst256Segments
public int getTextFirst256Segments()
-
isEmpty
public boolean isEmpty()
-
isValid
public boolean isValid()
-
committedCopy
public SegmentStats committedCopy()
-
clear
public void clear()
-
add
public void add(SegmentStats other)
-
remove
public void remove(SegmentStats other)
-
isTextFirst256
public boolean isTextFirst256()
-
isTextRepeatedSpace
public boolean isTextRepeatedSpace()
-
isRepeatedText
public boolean isRepeatedText()
-
commitText
public void commitText()
-
addText
public void addText(java.lang.CharSequence text)
-
addText
public void addText(char c)
-
addText
public void addText(char c, int repeat)
-
removeText
public void removeText(java.lang.CharSequence text)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-