Class AttributesMatchers
java.lang.Object
org.apache.hadoop.hbase.client.trace.hamcrest.AttributesMatchers
Helper methods for matching against instances of
Attributes
.-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static final class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntry
(io.opentelemetry.api.common.AttributeKey<T> key, org.hamcrest.Matcher<? super T> matcher) static <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntry
(io.opentelemetry.api.common.AttributeKey<T> key, T value) static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntry
(String key, long value) static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntry
(String key, String value) static <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntry
(org.hamcrest.Matcher<io.opentelemetry.api.common.AttributeKey<? super T>> keyMatcher, org.hamcrest.Matcher<? super T> valueMatcher) static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntryWithStringValuesOf
(String key, String... values) static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
containsEntryWithStringValuesOf
(String key, org.hamcrest.Matcher<Iterable<? extends String>> matcher) static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes>
isEmpty()
-
Constructor Details
-
AttributesMatchers
private AttributesMatchers()
-
-
Method Details
-
containsEntry
public static <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntry(org.hamcrest.Matcher<io.opentelemetry.api.common.AttributeKey<? super T>> keyMatcher, org.hamcrest.Matcher<? super T> valueMatcher) -
containsEntry
public static <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntry(io.opentelemetry.api.common.AttributeKey<T> key, T value) -
containsEntry
public static <T> org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntry(io.opentelemetry.api.common.AttributeKey<T> key, org.hamcrest.Matcher<? super T> matcher) -
containsEntry
public static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntry(String key, String value) -
containsEntry
public static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntry(String key, long value) -
containsEntryWithStringValuesOf
public static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntryWithStringValuesOf(String key, String... values) -
containsEntryWithStringValuesOf
public static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> containsEntryWithStringValuesOf(String key, org.hamcrest.Matcher<Iterable<? extends String>> matcher) -
isEmpty
-