Class AttributesMatchers

java.lang.Object
org.apache.hadoop.hbase.client.trace.hamcrest.AttributesMatchers

public final class AttributesMatchers extends Object
Helper methods for matching against instances of Attributes.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static final class 
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <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>
     
    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>
     
    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>
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • 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

      public static org.hamcrest.Matcher<io.opentelemetry.api.common.Attributes> isEmpty()