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 int
The field for theendOffset
record component.private final boolean
The field for theisFirst
record component.private final int
The field for thestartOffset
record component.private final String
The field for theterm
record component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CompletionToken
(String term, boolean isFirst, int startOffset, int endOffset) Creates an instance of aCompletionToken
record class. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the value of theendOffset
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.boolean
isFirst()
Returns the value of theisFirst
record component.int
Returns the value of thestartOffset
record component.term()
Returns the value of theterm
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
term
The field for theterm
record component. -
isFirst
private final boolean isFirstThe field for theisFirst
record component. -
startOffset
private final int startOffsetThe field for thestartOffset
record component. -
endOffset
private final int endOffsetThe field for theendOffset
record component.
-
-
Constructor Details
-
CompletionToken
Creates an instance of aCompletionToken
record class.- Parameters:
term
- the value for theterm
record componentisFirst
- the value for theisFirst
record componentstartOffset
- the value for thestartOffset
record componentendOffset
- the value for theendOffset
record 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 theterm
record component.- Returns:
- the value of the
term
record component
-
isFirst
public boolean isFirst()Returns the value of theisFirst
record component.- Returns:
- the value of the
isFirst
record component
-
startOffset
public int startOffset()Returns the value of thestartOffset
record component.- Returns:
- the value of the
startOffset
record component
-
endOffset
public int endOffset()Returns the value of theendOffset
record component.- Returns:
- the value of the
endOffset
record component
-