public class FilterSingleMap
extends java.lang.Object
Title: Framework Support Library
Description: Defines a map-like container using simple filters as keys.
HashMap
as base. It is not thread-safe.
Copyright: Copyright (c) 2010
Company: StreamScape Technologies
Constructor and Description |
---|
FilterSingleMap() |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears the map.
|
boolean |
contains(java.lang.String pattern)
Checks if the map contains objects matching the specified pattern.
|
boolean |
containsFilter(Filter filter)
Checks if the map contains objects matching the specified filter.
|
boolean |
containsFilter(java.lang.String filter)
Checks if the map contains objects matching the specified filter.
|
java.util.List |
get(java.lang.String pattern)
Returns a list of objects matching the specified pattern.
|
java.lang.Object |
getByFilter(Filter filter)
Returns an object matching the specified filter.
|
java.lang.Object |
getByFilter(java.lang.String filter)
Returns an object matching the specified filter.
|
boolean |
isEmpty()
Checks if the map is empty.
|
void |
put(Filter filter,
java.lang.Object object)
Puts the specified object with the specified filter to the map.
|
void |
put(java.lang.String filter,
java.lang.Object object)
Puts the specified object with the specified filter to the map.
|
void |
remove(Filter filter)
Removes an object matching the specified filter.
|
void |
remove(java.lang.String filter)
Removes an object matching the specified filter.
|
public java.util.List get(java.lang.String pattern)
pattern
- the specified pattern.public java.lang.Object getByFilter(java.lang.String filter) throws FilterFormatException
filter
- the specified filter.FilterFormatException
public java.lang.Object getByFilter(Filter filter)
filter
- the specified filter.public void put(java.lang.String filter, java.lang.Object object) throws FilterFormatException
filter
- the filter matching the put object.object
- the object to be put.FilterFormatException
- if the filter has wrong format.public void put(Filter filter, java.lang.Object object)
filter
- the filter matching the put object.object
- the object to be put.FilterFormatException
- if the filter has wrong format.public void remove(java.lang.String filter) throws FilterFormatException
filter
- the filter matching the removed object.FilterFormatException
- if the filter has wrong format.public void remove(Filter filter)
filter
- the filter matching the removed object.FilterFormatException
- if the filter has wrong format.public boolean contains(java.lang.String pattern)
pattern
- the checked pattern.true
if the map contains matching objects, false
otherwise.public boolean containsFilter(java.lang.String filter) throws FilterFormatException
filter
- the checked filter.true
if the map contains matching objects, false
otherwise.FilterFormatException
public boolean containsFilter(Filter filter)
filter
- the checked filter.true
if the map contains matching objects, false
otherwise.public boolean isEmpty()
true
if the map does not contain elements, false
otherwise.public void clear()
Copyright © 2015-2024 StreamScape Technologies. All rights reserved.