public final class Filter extends Object implements Map<String,String>
Filter
used when searching an element off of a Context
object. The
sole factory method used to build a Filter
instance accepts a filter String
that follows the following
format only:
key1=val1;key2=val2;key3=val3
If the filter String
can't be successfully parsed for whatever reason, IllegalArgumentException
gets thrown.
This class is a specialized implementation of Map
interface, backed by a Map
instance to which
all Map
operations are forwarded (composition design pattern). It will throw UnsupportedOperationException
on any method invocation of Map
that would otherwise modify the underlying Map
, because instances of
this class aremeant to be read-ony.
Created by QuijadaJ on 5/3/2017.Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object pKey) |
boolean |
containsValue(Object pValue) |
Set<Map.Entry<String,String>> |
entrySet() |
static Filter |
fromMap(Map<String,String> pFilterMap) |
String |
get(Object pKey) |
boolean |
isEmpty() |
Set<String> |
keySet() |
String |
put(String pKey,
String pValue) |
void |
putAll(Map<? extends String,? extends String> pMap) |
String |
remove(Object pKey) |
int |
size() |
String |
toString() |
static Filter |
valueOf(String pFilter) |
Collection<String> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
public static Filter valueOf(String pFilter) throws IllegalArgumentException
IllegalArgumentException
public boolean containsKey(Object pKey)
containsKey
in interface Map<String,String>
public boolean containsValue(Object pValue)
containsValue
in interface Map<String,String>
Copyright © 2019. All rights reserved.