javax.faces.model
Class ResultSetDataModel.WrapResultSetKeys

java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
javax.faces.model.ResultSetDataModel.WrapResultSetKeys
- All Implemented Interfaces:
- java.util.Collection, java.lang.Iterable, java.util.Set
- Enclosing class:
- ResultSetDataModel
- private static class ResultSetDataModel.WrapResultSetKeys
- extends java.util.AbstractSet
Method Summary |
boolean |
add(java.lang.Object o)
Adds the specified element to the set if it is not already present
(optional operation). |
boolean |
addAll(java.util.Collection c)
Adds all of the elements of the given collection to this set (optional
operation). |
void |
clear()
Removes all elements from this set (optional operation). |
boolean |
contains(java.lang.Object obj)
Returns true if the set contains the specified element. |
boolean |
isEmpty()
Returns true if the set contains no elements. |
java.util.Iterator |
iterator()
Returns an iterator over the set. |
boolean |
remove(java.lang.Object o)
Removes the specified element from this set (optional operation). |
boolean |
removeAll(java.util.Collection c)
Removes from this set all elements in the given collection (optional
operation). |
boolean |
retainAll(java.util.Collection c)
Retains only the elements in this set that are also in the specified
collection (optional operation). |
int |
size()
Returns the number of elements in the set. |
_wrapMap
private ResultSetDataModel.WrapResultSetMap _wrapMap
ResultSetDataModel.WrapResultSetKeys
public ResultSetDataModel.WrapResultSetKeys(ResultSetDataModel.WrapResultSetMap wrapMap)
add
public boolean add(java.lang.Object o)
- Description copied from interface:
java.util.Set
- Adds the specified element to the set if it is not already present
(optional operation). In particular, the comparison algorithm is
o == null ? e == null : o.equals(e)
. Sets need not permit
all values, and may document what exceptions will be thrown if
a value is not permitted.
addAll
public boolean addAll(java.util.Collection c)
- Description copied from interface:
java.util.Set
- Adds all of the elements of the given collection to this set (optional
operation). If the argument is also a Set, this returns the mathematical
union of the two. The behavior is unspecified if the set is
modified while this is taking place.
clear
public void clear()
- Description copied from interface:
java.util.Set
- Removes all elements from this set (optional operation). This set will
be empty afterwords, unless an exception occurs.
contains
public boolean contains(java.lang.Object obj)
- Description copied from interface:
java.util.Set
- Returns true if the set contains the specified element. In other words,
this looks for
o == null ? e == null : o.equals(e)
.
isEmpty
public boolean isEmpty()
- Description copied from interface:
java.util.Set
- Returns true if the set contains no elements.
iterator
public java.util.Iterator iterator()
- Description copied from interface:
java.util.Set
- Returns an iterator over the set. The iterator has no specific order,
unless further specified.
remove
public boolean remove(java.lang.Object o)
- Description copied from interface:
java.util.Set
- Removes the specified element from this set (optional operation). If
an element e exists,
o == null ? e == null : o.equals(e)
,
it is removed from the set.
removeAll
public boolean removeAll(java.util.Collection c)
- Description copied from class:
java.util.AbstractSet
- Removes from this set all elements in the given collection (optional
operation). This implementation uses
size()
to determine
the smaller collection. Then, if this set is smaller, it iterates
over the set, calling Iterator.remove if the collection contains
the element. If this set is larger, it iterates over the collection,
calling Set.remove for all elements in the collection. Note that
this operation will fail if a remove methods is not supported.
retainAll
public boolean retainAll(java.util.Collection c)
- Description copied from interface:
java.util.Set
- Retains only the elements in this set that are also in the specified
collection (optional operation). If the argument is also a set, this
performs the intersection of the two sets.
size
public int size()
- Description copied from interface:
java.util.Set
- Returns the number of elements in the set. If there are more
than Integer.MAX_VALUE mappings, return Integer.MAX_VALUE. This is
the cardinality of the set.