Class FieldPhraseList.WeightedPhraseInfo.Toffs
Term offsets (start + end)
Implements
Inherited Members
Namespace: Lucene.Net.Search.VectorHighlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class FieldPhraseList.WeightedPhraseInfo.Toffs : IComparable<FieldPhraseList.WeightedPhraseInfo.Toffs>
Constructors
Toffs(int, int)
Term offsets (start + end)
Declaration
public Toffs(int startOffset, int endOffset)
Parameters
| Type | Name | Description |
|---|---|---|
| int | startOffset | |
| int | endOffset |
Properties
EndOffset
Term offsets (start + end)
Declaration
public virtual int EndOffset { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
StartOffset
Term offsets (start + end)
Declaration
public virtual int StartOffset { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
CompareTo(Toffs)
Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.
Declaration
public virtual int CompareTo(FieldPhraseList.WeightedPhraseInfo.Toffs other)
Parameters
| Type | Name | Description |
|---|---|---|
| FieldPhraseList.WeightedPhraseInfo.Toffs | other | An object to compare with this instance. |
Returns
| Type | Description | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| int | A value that indicates the relative order of the objects being compared. The return value has these meanings:
|
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |