|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FilterableMap
The Container interface adds the ability to filter and order its elements to a Collection.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
Map.Entry<K,V> |
| Method Summary | |
|---|---|
FilterableMap |
subMap(Object filter)
Selects objects matching the filter. |
List |
values(Object criteria)
Applies given criteria to the elements of the container and returns the result as list. |
| Methods inherited from interface java.util.Map |
|---|
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, values |
| Method Detail |
|---|
FilterableMap subMap(Object filter)
The semantics of the collection returned by this method become undefined if the backing collection (i.e., this container) is structurally modified in any way other than via the returned collection. (Structural modifications are those that change the size of this list, or otherwise perturb it in such a fashion that iterations in progress may yield incorrect results.)
This method returns a Collection as opposed to a
Set because it behaves as set in respect to object id
equality, not element equality.
The acceptable filter object classes must be specified by the container implementation.
filter - The filter to be applied to objects of this container
ClassCastException - if the class of the specified filter prevents it from
being applied to this container.
IllegalArgumentException - if some aspect of this filter prevents it from being
applied to this container.List values(Object criteria)
The acceptable criteria classes must be specified by the container implementation.
criteria - The criteria to be applied to objects of this container;
or null for all the container's elements in
their default order.
ClassCastException - if the class of the specified criteria prevents them from
being applied to this container's elements.
IllegalArgumentException - if some aspect of the criteria prevents them from being
applied to this container's elements.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||