public enum MetricMatchers extends Enum<MetricMatchers>
org.apache.flink.metrics.reporter.TestReporter
Modifier and Type | Method and Description |
---|---|
static <T extends Metric> |
isCounter(org.hamcrest.Matcher<Long> valueMatcher) |
static <T extends Metric,V> |
isGauge(org.hamcrest.Matcher<V> valueMatcher) |
static MetricMatchers |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MetricMatchers[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static MetricMatchers[] values()
for (MetricMatchers c : MetricMatchers.values()) System.out.println(c);
public static MetricMatchers valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static <T extends Metric,V> org.hamcrest.Matcher<T> isGauge(org.hamcrest.Matcher<V> valueMatcher)
Copyright © 2014–2023 The Apache Software Foundation. All rights reserved.