{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BundleMatchers

class BundleMatchers


A collection of hamcrest matchers to match Bundle objects.

Summary

Public constructors

Public functions

java-static Matcher<Bundle>!
java-static Matcher<Bundle>!
doesNotHaveKey(keyMatcher: Matcher<String>!)
java-static Matcher<Bundle>!
<T> hasEntry(key: String!, value: T!)
java-static Matcher<Bundle>!
hasEntry(key: String!, valueMatcher: Matcher<?>!)
java-static Matcher<Bundle>!
hasEntry(keyMatcher: Matcher<String>!, valueMatcher: Matcher<?>!)
java-static Matcher<Bundle>!
hasKey(key: String!)
java-static Matcher<Bundle>!
hasKey(keyMatcher: Matcher<String>!)
java-static Matcher<Bundle>!
<T> hasValue(value: T!)
java-static Matcher<Bundle>!
hasValue(valueMatcher: Matcher<?>!)
java-static Matcher<Bundle>!
java-static Matcher<Bundle>!

Public constructors

BundleMatchers

BundleMatchers()

Public functions

doesNotHaveKey

java-static fun doesNotHaveKey(key: String!): Matcher<Bundle>!

doesNotHaveKey

java-static fun doesNotHaveKey(keyMatcher: Matcher<String>!): Matcher<Bundle>!

hasEntry

java-static fun <T> hasEntry(key: String!, value: T!): Matcher<Bundle>!

hasEntry

java-static fun hasEntry(key: String!, valueMatcher: Matcher<?>!): Matcher<Bundle>!

hasEntry

java-static fun hasEntry(keyMatcher: Matcher<String>!, valueMatcher: Matcher<?>!): Matcher<Bundle>!

hasKey

java-static fun hasKey(key: String!): Matcher<Bundle>!

hasKey

java-static fun hasKey(keyMatcher: Matcher<String>!): Matcher<Bundle>!

hasValue

java-static fun <T> hasValue(value: T!): Matcher<Bundle>!

hasValue

java-static fun hasValue(valueMatcher: Matcher<?>!): Matcher<Bundle>!

isEmpty

java-static fun isEmpty(): Matcher<Bundle>!

isEmptyOrNull

java-static fun isEmptyOrNull(): Matcher<Bundle>!