public class SegmentStats extends Object
| Modifier and Type | Field and 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 and Description |
|---|
SegmentStats(boolean trackFirst256) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(SegmentStats other) |
void |
addText(char c) |
void |
addText(char c,
int repeat) |
void |
addText(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(CharSequence text) |
String |
toString() |
public static final int NULL_REPEATED_CHAR
public static final int NOT_REPEATED_CHAR
protected int textLength
protected int textSegments
protected int textSegmentLength
protected int textSpaceLength
protected int textSpaceSegments
protected int textSpaceSegmentLength
protected int textFirst256Length
protected int textFirst256Segments
protected int textFirst256SegmentLength
protected int repeatedChar
protected final boolean trackFirst256
public int getTextLength()
public int getTextSpaceLength()
public int getTextFirst256Length()
public boolean isTrackTextFirst256()
public int getTextSegments()
public int getTextSpaceSegments()
public int getTextFirst256Segments()
public boolean isEmpty()
public boolean isValid()
public SegmentStats committedCopy()
public void clear()
public void add(SegmentStats other)
public void remove(SegmentStats other)
public boolean isTextFirst256()
public boolean isTextRepeatedSpace()
public boolean isRepeatedText()
public void commitText()
public void addText(CharSequence text)
public void addText(char c)
public void addText(char c,
int repeat)
public void removeText(CharSequence text)
Copyright © 2020. All rights reserved.