Package io.fluxcapacitor.common.search
Class Document.Entry
java.lang.Object
io.fluxcapacitor.common.search.Document.Entry
- All Implemented Interfaces:
Comparable<Document.Entry>
- Enclosing class:
Document
Represents a typed field value within a document (e.g. text, number, boolean).
Each entry is associated with one or more paths in the document and may be normalized for search.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(@NonNull Document.Entry o) Compares this entry with the specified entry for order.
-
Constructor Details
-
Entry
public Entry()
-
-
Method Details
-
compareTo
Compares this entry with the specified entry for order. The comparison is primarily based on the type of the entries. If both entries are numeric, their numeric values are compared. Otherwise, their string values are compared case-insensitively.- Specified by:
compareTo
in interfaceComparable<Document.Entry>
-