java.lang.Comparable values
| Modifier and Type | Class and Description |
|---|---|
| private static class | ComparableValue.LuceneCaseAgnosticStringComparator
A Lucene compatible case insensitive string comparator. |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private static final Comparator | |
| private final AttributeType |
| Access | Constructor and Description |
|---|---|
| public | ComparableValue(String
attribute name attributeName, Object comparable value (used to infer type) value)Constructor |
| public | ComparableValue(String
attribute name attributeName, AttributeType the expeceted type for values evaluated by this criteria type)Constructor |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | execute(Element
cache element e, Map<String, AttributeExtractor> map of attribute extractors to attribute value names attributeExtractors)Implements net. |
| protected abstract boolean | Returns: true if criteria is metComparable attribute value attributeValue)Execute this criteria for the given |
| protected abstract boolean | Returns: true if criteria is metComparable attribute value attributeValue)Execute this criteria for the given |
| public String | |
| public Set | getAttributes()
Implements abstract net. |
| public AttributeType | |
| protected static int | Returns: the comparison resultfirst string s1, String second string s2)Perform a Lucene compatible case insensitive string comparison. |
| attributeName | back to summary |
|---|---|
| private final String attributeName | |
| LUCENE_STRING_COMPARATOR | back to summary |
|---|---|
| private static final Comparator<String> LUCENE_STRING_COMPARATOR | |
| type | back to summary |
|---|---|
| private final AttributeType type | |
| ComparableValue | back to summary |
|---|---|
| public ComparableValue(String attributeName, Object value) Constructor | |
| ComparableValue | back to summary |
|---|---|
| public ComparableValue(String attributeName, AttributeType type) Constructor
| |
| execute | back to summary |
|---|---|
| public boolean execute(Element e, Map<String, AttributeExtractor> attributeExtractors) Implements net. Doc from net. Test this criteria against a cache element
| |
| executeComparable | back to summary |
|---|---|
| protected abstract boolean executeComparable(Comparable<T> attributeValue) Execute this criteria for the given
| |
| executeComparableString | back to summary |
|---|---|
| protected abstract boolean executeComparableString(Comparable<T> attributeValue) Execute this criteria for the given
| |
| getAttributeName | back to summary |
|---|---|
| public String getAttributeName() Attribute name.
| |
| getAttributes | back to summary |
|---|---|
| public Set Implements abstract net. Doc from net. Returns all search attributes referenced by this instance
| |
| getType | back to summary |
|---|---|
| public AttributeType getType() Attribute type.
| |
| luceneStringCompare | back to summary |
|---|---|
| protected static int luceneStringCompare(String s1, String s2) Perform a Lucene compatible case insensitive string comparison. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(String
the first object to be compared. s1, String the second object to be compared. s2)Implements java. |
| LuceneCaseAgnosticStringComparator | back to summary |
|---|---|
| private LuceneCaseAgnosticStringComparator() | |
| compare | back to summary |
|---|---|
| public int compare(String s1, String s2) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that | |