|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.norvelle.textcite.model.sort.SortComparator
org.norvelle.textcite.model.sort.BookSortComparator
public abstract class BookSortComparator
BookSortComparator: Compares two Citations based on their Book fields. Also provides the ability to signal a listener when the two Citations are not the same. Is abstract because the upon constructing an instance, the using class must implement the method signalChange().
Field Summary |
---|
Fields inherited from class org.norvelle.textcite.model.sort.SortComparator |
---|
ASCENDING, DESCENDING, direction |
Constructor Summary | |
---|---|
BookSortComparator()
|
|
BookSortComparator(int direction)
|
Method Summary | |
---|---|
int |
compare(Citation citation1,
Citation citation2)
|
Methods inherited from class org.norvelle.textcite.model.sort.SortComparator |
---|
getDirection, signalChange |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BookSortComparator(int direction)
public BookSortComparator()
Method Detail |
---|
public int compare(Citation citation1, Citation citation2)
compare
in class SortComparator
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |