Package org.elasticsearch.test
Class IntOrLongMatcher<T>
java.lang.Object
org.hamcrest.BaseMatcher<T>
org.elasticsearch.test.IntOrLongMatcher<T>
- All Implemented Interfaces:
org.hamcrest.Matcher<T>,org.hamcrest.SelfDescribing
public abstract sealed class IntOrLongMatcher<T>
extends org.hamcrest.BaseMatcher<T>
A type-agnostic way of comparing integer values, not caring if it's a long or an integer.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.hamcrest.Matcher<Object> static IntOrLongMatcher<Integer> matches(int expected) static IntOrLongMatcher<Long> matches(long expected) Methods inherited from class org.hamcrest.BaseMatcher
_dont_implement_Matcher___instead_extend_BaseMatcher_, describeMismatch, isNotNull, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.hamcrest.Matcher
matchesMethods inherited from interface org.hamcrest.SelfDescribing
describeTo
-
Constructor Details
-
IntOrLongMatcher
public IntOrLongMatcher()
-
-
Method Details
-
matches
-
matches
-
isIntOrLong
-