Class Metadata
java.lang.Object
com.github.tomakehurst.wiremock.common.Metadata
- Direct Known Subclasses:
Parameters
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tstatic Metadata.Builderbuilder()protected voidcheckKeyPresent(String key) voidclear()compute(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) computeIfAbsent(String key, Function<? super String, ?> mappingFunction) computeIfPresent(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) booleancontainsKey(Object key) booleancontainsValue(Object value) convertNestedMapsToMetadata(Map<? extends String, ?> data) static Metadatacreate(Consumer<Metadata.Builder> transformer) entrySet()booleanvoidforEach(BiConsumer<? super String, ? super Object> action) static <T> Metadatafrom(T myData) getBoolean(String key) getBoolean(String key, Boolean defaultValue) List<?>getMetadata(String key) getMetadata(String key, Metadata defaultValue) getOrDefault(Object key, Object defaultValue) inthashCode()booleanisEmpty()keySet()static Metadata.Buildermetadata()protected MetadatanewInstance(Map<String, Object> value) voidputIfAbsent(String key, Object value) booleanbooleanvoidreplaceAll(BiFunction<? super String, ? super Object, ?> function) intsize()toString()transform(Consumer<Metadata.Builder> transformer) values()
-
Constructor Details
-
Metadata
public Metadata() -
Metadata
-
-
Method Details
-
convertNestedMapsToMetadata
-
newInstance
-
builder
-
create
-
transform
-
toBuilder
-
getInt
-
getInt
-
getBoolean
-
getBoolean
-
getString
-
getString
-
getList
-
getMetadata
-
getMetadata
-
checkKeyPresent
-
from
-
metadata
-
as
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<String,Object>
-
containsValue
- Specified by:
containsValuein interfaceMap<String,Object>
-
get
-
keySet
-
values
-
entrySet
-
getOrDefault
- Specified by:
getOrDefaultin interfaceMap<String,Object>
-
forEach
-
put
-
remove
-
putAll
-
clear
public void clear() -
replaceAll
- Specified by:
replaceAllin interfaceMap<String,Object>
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<String,Object>
-
remove
-
replace
-
replace
-
computeIfAbsent
- Specified by:
computeIfAbsentin interfaceMap<String,Object>
-
computeIfPresent
public Object computeIfPresent(String key, BiFunction<? super String, ? super Object, ?> remappingFunction) - Specified by:
computeIfPresentin interfaceMap<String,Object>
-
compute
-
merge
-
equals
-
hashCode
public int hashCode() -
toString
-
deepMerge
-
asMutableMap
-