Package org.apache.lucene.analysis.ja
Record Class JapaneseCompletionFilter.CompletionToken
java.lang.Object
java.lang.Record
org.apache.lucene.analysis.ja.JapaneseCompletionFilter.CompletionToken
- Enclosing class:
JapaneseCompletionFilter
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intThe field for theendOffsetrecord component.private final booleanThe field for theisFirstrecord component.private final intThe field for thestartOffsetrecord component.private final StringThe field for thetermrecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompletionToken(String term, boolean isFirst, int startOffset, int endOffset) Creates an instance of aCompletionTokenrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theendOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisFirst()Returns the value of theisFirstrecord component.intReturns the value of thestartOffsetrecord component.term()Returns the value of thetermrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
term
The field for thetermrecord component. -
isFirst
private final boolean isFirstThe field for theisFirstrecord component. -
startOffset
private final int startOffsetThe field for thestartOffsetrecord component. -
endOffset
private final int endOffsetThe field for theendOffsetrecord component.
-
-
Constructor Details
-
CompletionToken
Creates an instance of aCompletionTokenrecord class.- Parameters:
term- the value for thetermrecord componentisFirst- the value for theisFirstrecord componentstartOffset- the value for thestartOffsetrecord componentendOffset- the value for theendOffsetrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
term
Returns the value of thetermrecord component.- Returns:
- the value of the
termrecord component
-
isFirst
public boolean isFirst()Returns the value of theisFirstrecord component.- Returns:
- the value of the
isFirstrecord component
-
startOffset
public int startOffset()Returns the value of thestartOffsetrecord component.- Returns:
- the value of the
startOffsetrecord component
-
endOffset
public int endOffset()Returns the value of theendOffsetrecord component.- Returns:
- the value of the
endOffsetrecord component
-