|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.northwestern.at.wordhoard.model.bibtool.GroupingWorkOptions
public class GroupingWorkOptions
A set of grouping options.
Field Summary | |
---|---|
static int |
ASCENDING
Ascending option. |
static int |
DESCENDING
Descending option. |
static int |
GROUP_BY_AUTHOR
Group by author option. |
static int |
GROUP_BY_CENTURY
Group by quarter century option. |
static int |
GROUP_BY_DECADE
Group by decade option. |
static java.lang.String[] |
GROUP_BY_NAMES
Grouping option names. |
static int |
GROUP_BY_NONE
No grouping option. |
static int |
GROUP_BY_QCENTURY
Group by quarter century option. |
static int |
GROUP_BY_YEAR
Group by year option. |
static int |
ORDER_BY_AUTHOR
Order by Author. |
static int |
ORDER_BY_COUNT
Order by count - used for group by author. |
static int |
ORDER_BY_DATE
Order by date option. |
static java.lang.String[] |
ORDER_BY_NAMES
Ordering option names. |
static int |
ORDER_BY_WORK
Order by title. |
static java.lang.String[] |
UP_DOWN_NAMES
Ascending/descending option names. |
Constructor Summary | |
---|---|
GroupingWorkOptions(int groupBy,
int orderBy,
int upDown)
Creates a new set of grouping options. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if some other object is equal to this one. |
int |
getGroupBy()
Gets the grouping option. |
int |
getOrderBy()
Gets the ordering option. |
int |
getUpDown()
Gets the ascending/descending option. |
java.util.Map |
group(java.util.Collection works)
Groups a collection of works. |
void |
setGroupBy(int groupBy)
Sets the grouping option. |
void |
setOrderBy(int orderBy)
Sets the ordering option. |
void |
setUpDown(int upDown)
Sets the ascending/descending option. |
java.util.List |
sort(java.util.Collection works)
Sort a collection of works. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int GROUP_BY_NONE
public static final int GROUP_BY_AUTHOR
public static final int GROUP_BY_YEAR
public static final int GROUP_BY_DECADE
public static final int GROUP_BY_QCENTURY
public static final int GROUP_BY_CENTURY
public static final java.lang.String[] GROUP_BY_NAMES
public static final int ORDER_BY_WORK
public static final int ORDER_BY_AUTHOR
public static final int ORDER_BY_DATE
public static final int ORDER_BY_COUNT
public static final java.lang.String[] ORDER_BY_NAMES
public static final int ASCENDING
public static final int DESCENDING
public static final java.lang.String[] UP_DOWN_NAMES
Constructor Detail |
---|
public GroupingWorkOptions(int groupBy, int orderBy, int upDown)
groupBy
- Grouping option.orderBy
- Ordering option.upDown
- Ascending/descending option. Method Detail |
---|
public int getGroupBy()
public void setGroupBy(int groupBy)
groupBy
- Grouping option. public int getOrderBy()
public void setOrderBy(int orderBy)
orderBy
- Ordering option. public int getUpDown()
public void setUpDown(int upDown)
upDown
- Ascending/descending option. public java.util.Map group(java.util.Collection works)
The grouping and ordering options must be one of the following combinations:
works
- Collection of works.
public java.util.List sort(java.util.Collection works)
works
- Collection of works.
public boolean equals(java.lang.Object obj)
The two sets of grouping options are equal if all three of their component options are equal.
equals
in class java.lang.Object
obj
- The other object.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |