
be.bagofwords.text.TransientText 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;
/**
* Throwaway object to hold text
*/
public class TransientText implements Text {
private static int counter = 0;
private int thisCounter;
private String text;
public TransientText(String text) {
this.text = text;
this.thisCounter = counter++;
}
@Override
public String getText() {
return text;
}
@Override
public String getId() {
return "transient_text_" + Integer.toString(thisCounter);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy