public interface IKeyProvider<K extends IKey<K>>
| Modifier and Type | Method and Description |
|---|---|
K |
fromRegionAndId(RegionKey regionKey,
int id)
Creates instance of
K such that key.getRegionKey().equals(regionKey) && key.getId() == id, or throws
IllegalArgumentException when the region key and id pair doesn't represent any key of this type. |
int |
getKeyCount(RegionKey key)
Gets the maximum number of keys within the region.
|
boolean |
isValid(RegionKey key) |
K fromRegionAndId(RegionKey regionKey, int id) throws java.lang.IllegalArgumentException
K such that key.getRegionKey().equals(regionKey) && key.getId() == id, or throws
IllegalArgumentException when the region key and id pair doesn't represent any key of this type.int getKeyCount(RegionKey key)
key - the region keyboolean isValid(RegionKey key)