65 |
|
// A few public methods exported across all subclasses |
66 |
|
|
67 |
|
/** |
68 |
< |
* Return the number of elements selected using bound or |
68 |
> |
* Returns the number of elements selected using bound or |
69 |
|
* filter restrictions. Note that this method must evaluate |
70 |
|
* all selectors to return its result. |
71 |
|
* @return the number of elements |
82 |
|
/** |
83 |
|
* Returns the index of some element matching bound and filter |
84 |
|
* constraints, or -1 if none. |
85 |
< |
* @return index of matching element, or -1 if none. |
85 |
> |
* @return index of matching element, or -1 if none |
86 |
|
*/ |
87 |
|
public int anyIndex() { |
88 |
|
if (!hasFilter()) |
95 |
|
} |
96 |
|
|
97 |
|
/** |
98 |
< |
* Returns true if there are no elements |
98 |
> |
* Returns true if there are no elements. |
99 |
|
* @return true if there are no elements |
100 |
|
*/ |
101 |
|
public boolean isEmpty() { |