eu.semaine.util
Class FuzzySort.FuzzySortableRelation
java.lang.Object
eu.semaine.util.FuzzySort.FuzzySortableRelation
- Enclosing class:
- FuzzySort
public static class FuzzySort.FuzzySortableRelation
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
FuzzySort.FuzzySortableRelation
public FuzzySort.FuzzySortableRelation(FuzzySort.FuzzySortable first,
FuzzySort.FuzzySortable second)
throws java.lang.NullPointerException
- Represent a desirect direct order relation between two sortables.
- Parameters:
first
- a fuzzy sortable (must not be null)second
- another fuzzy sortable, which wants to immediately follow first (must not be null)
- Throws:
java.lang.NullPointerException
- if one is null
java.lang.IllegalArgumentException
- if both are equal
getFirst
public FuzzySort.FuzzySortable getFirst()
- get the sortable in this relation that wants to immediately precede the other one
- Returns:
- a fuzzy sortable, guaranteed not to be null
getSecond
public FuzzySort.FuzzySortable getSecond()
- get the sortable in this relation that wants to immediately follow the other one
- Returns:
- a fuzzy sortable, guaranteed not to be null
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object