public class KeyMatcher<T extends Key<?>> extends Object implements Matcher<T>
Modifier | Constructor and Description |
---|---|
protected |
KeyMatcher(T compareTo) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
T |
getCompareToValue() |
int |
hashCode() |
boolean |
isMatch(T key) |
static <U extends Key<?>> |
keyEquals(U compareTo)
Create a KeyMatcher that matches Keys that equal the given key.
|
protected KeyMatcher(T compareTo)
public static <U extends Key<?>> KeyMatcher<U> keyEquals(U compareTo)
public T getCompareToValue()
public int hashCode()
Copyright 2001-2019, Terracotta, Inc.