
be.bagofwords.text.BowString Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
The newest version!
package be.bagofwords.text;
/**
* String that exposes the underlying text from where the string originated
*/
public interface BowString extends CharSequence {
int getStart();
int getEnd();
String getS();
Text getText();
default String getTextS() {
return getText().getText();
}
default String uniqueId() {
return getText().getId() + "_" + getStart() + "_" + getEnd();
}
default boolean equals(BowString other) {
return getText().getId().equals(other.getText().getId()) && getStart() == other.getStart() && getEnd() == other.getEnd();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy