Package io.fabric8.mockwebserver.crud
Class AttributeSet
- java.lang.Object
-
- io.fabric8.mockwebserver.crud.AttributeSet
-
public class AttributeSet extends Object
-
-
Constructor Summary
Constructors Constructor Description AttributeSet(Attribute... attributes)AttributeSet(Collection<Attribute> attributes)AttributeSet(Map<Key,Attribute> attributes)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeSetadd(Attribute... attr)booleancontainsKey(Key key)booleancontainsKey(String key)booleanequals(Object o)AttributegetAttribute(String key)inthashCode()static AttributeSetmap(Attribute... attributes)booleanmatches(AttributeSet candidate)matches if attributes in db has (or doesn't if WITHOUT command) a set of candidate attributes Also supports EXISTS and NOT_EXISTS operationsstatic AttributeSetmerge(AttributeSet... attributeSets)StringtoString()
-
-
-
Method Detail
-
merge
public static AttributeSet merge(AttributeSet... attributeSets)
-
map
public static AttributeSet map(Attribute... attributes)
-
add
public AttributeSet add(Attribute... attr)
-
containsKey
public boolean containsKey(String key)
-
containsKey
public boolean containsKey(Key key)
-
matches
public boolean matches(AttributeSet candidate)
matches if attributes in db has (or doesn't if WITHOUT command) a set of candidate attributes Also supports EXISTS and NOT_EXISTS operations- Parameters:
candidate- - set of candidate attributes- Returns:
- match
-
-