public class BookSet extends ArrayList<Book> implements Set<Book>
The GNU Lesser General Public License for details.,
Serialized Form| Modifier and Type | Class and Description |
|---|---|
private static class |
BookSet.GroupFilter
GroupFilter does the SQL traditional group by.
|
| Modifier and Type | Field and Description |
|---|---|
private static long |
serialVersionUID
Serialization ID
|
modCount| Constructor and Description |
|---|
BookSet() |
BookSet(Collection<Book> books) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Book book) |
void |
add(int index,
Book element) |
boolean |
addAll(Collection<? extends Book> c) |
boolean |
addAll(int index,
Collection<? extends Book> c) |
BookSet |
filter(Filter<Book> filter)
Get a set of books that satisfy the condition imposed by the filter.
|
BookSet |
filter(String key,
Object value) |
Set<Object> |
getGroup(String key)
Get the sorted set of all values for a particular key.
|
Set<String> |
getGroups()
Gets the sorted set of all keys which can be used for groupings.
|
Book |
set(int index,
Book element) |
clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArraycontainsAll, equals, hashCodeprivate static final long serialVersionUID
public BookSet()
public BookSet(Collection<Book> books)
public Set<String> getGroups()
public Set<Object> getGroup(String key)
key - the property keypublic BookSet filter(Filter<Book> filter)
filter - the condition on which to select bookspublic void add(int index,
Book element)
public final boolean add(Book book)
public final boolean addAll(Collection<? extends Book> c)
public final boolean addAll(int index,
Collection<? extends Book> c)