Javolution 6.0.0 java
|
Public Member Functions | |
int | hashCodeOf (CharSequence csq) |
int | hashCodeOf (T object) |
boolean | areEqual (CharSequence csq1, CharSequence csq2) |
boolean | areEqual (T left, T right) |
int | compare (CharSequence left, CharSequence right) |
int | compare (T left, T right) |
Static Private Attributes | |
static final long | serialVersionUID = -1449702752185594025L |
The high-performance lexical comparator.
Definition at line 14 of file LexicalFastComparatorImpl.java.
|
inherited |
Definition at line 38 of file LexicalComparatorImpl.java.
|
inherited |
Indicates if the specified objects can be considered equal. This methods is equivalent to
but usually faster.
left | the first object (or null ). |
right | the second object (or null ). |
true
if both objects are considered equal; false
otherwise. Referenced by javolution.util.internal.map.MapView< K, V >.EntryComparator.areEqual(), javolution.util.internal.collection.CollectionView< R >.contains(), javolution.util.internal.collection.CollectionView< R >.equals(), javolution.util.internal.table.TableView< E >.indexOf(), javolution.util.internal.table.TableView< E >.lastIndexOf(), javolution.util.internal.map.FastMapImpl< K, V >.remove(), javolution.util.internal.collection.CollectionView< R >.remove(), and javolution.util.internal.map.FastMapImpl< K, V >.replace().
|
inherited |
Definition at line 62 of file LexicalComparatorImpl.java.
References javolution.lang.MathLib.min().
|
inherited |
Compares the specified objects for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, possibly equal to, or greater than the second. Implementation classes should ensure that comparisons with
is supported.
left | the first object. |
right | the second object. |
Referenced by javolution.util.internal.set.sorted.SubSortedSetImpl< E >.add(), javolution.util.internal.map.MapView< K, V >.EntryComparator.compare(), javolution.text.CharArray.compareTo(), javolution.text.Text.compareTo(), javolution.util.internal.set.sorted.SubSortedSetImpl< E >.contains(), javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >.containsKey(), javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >.get(), javolution.util.internal.set.sorted.SubSortedSetImpl< E >.IteratorImpl.hasNext(), javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >.IteratorImpl.hasNext(), javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >.put(), javolution.util.internal.set.sorted.SubSortedSetImpl< E >.remove(), and javolution.util.internal.map.sorted.SubSortedMapImpl< K, V >.remove().
int javolution.util.internal.comparator.LexicalFastComparatorImpl.hashCodeOf | ( | CharSequence | csq | ) |
Reimplemented from javolution.util.internal.comparator.LexicalComparatorImpl.
Definition at line 19 of file LexicalFastComparatorImpl.java.
|
inherited |
Returns the hash code for the specified object (consistent with areEqual). Two objects considered equal have the same hash code. The hash code of null
is always 0
.
object | the object to return the hashcode for. |
Referenced by javolution.util.internal.map.FastMapImpl< K, V >.containsKey(), javolution.util.internal.map.FastMapImpl< K, V >.get(), javolution.util.internal.collection.CollectionView< R >.hashCode(), javolution.util.internal.map.MapView< K, V >.EntryComparator.hashCodeOf(), javolution.util.internal.map.FastMapImpl< K, V >.put(), javolution.util.internal.map.FastMapImpl< K, V >.putIfAbsent(), javolution.util.internal.map.FastMapImpl< K, V >.remove(), and javolution.util.internal.map.FastMapImpl< K, V >.replace().
|
staticprivate |
Definition at line 16 of file LexicalFastComparatorImpl.java.