public static class Verifier.RangeOwnHelper
extends java.lang.Object
Constructor and Description |
---|
RangeOwnHelper(java.util.List<Range<Token>> normalizedRanges) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(DecoratedKey key)
check if the given key is contained in any of the given ranges
Must be called in sorted order - key should be increasing
|
void |
validate(DecoratedKey key)
check if the given key is contained in any of the given ranges
Must be called in sorted order - key should be increasing
|
public void validate(DecoratedKey key)
key
- the keyjava.lang.RuntimeException
- if the key is not containedpublic boolean check(DecoratedKey key)
key
- the keyCopyright © 2009-2022 The Apache Software Foundation