public interface DataCollector
Indexer
.Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String key,
int hash,
int flags,
int start,
int end)
Add index data for the given key.
|
int |
hash(int hash,
char c)
Generate a new hash code based on an existing hash code, by adding the
given character.
|
int |
hash(javax.swing.text.Segment segment)
Generate a hash code from the given Segment.
|
void add(java.lang.String key, int hash, int flags, int start, int end)
hash(javax.swing.text.Segment)
method can be used to generate the hash.key
- the data keyhash
- the hash code of the dataflags
- additional data flagsstart
- the start position of the data in the bufferend
- the end position of the data in the bufferint hash(javax.swing.text.Segment segment)
segment
- the segmentint hash(int hash, char c)
hash
- the existing hash codec
- the character to add