public static class EntryLocation2D.Provider extends java.lang.Object implements IKeyProvider<EntryLocation2D>
| Constructor and Description |
|---|
Provider() |
| Modifier and Type | Method and Description |
|---|---|
EntryLocation2D |
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) |
public EntryLocation2D fromRegionAndId(RegionKey regionKey, int id) throws java.lang.IllegalArgumentException
IKeyProviderK 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.fromRegionAndId in interface IKeyProvider<EntryLocation2D>regionKey - the RegionKey for which an IKey should be createdid - the ID for which an IKey should be createdjava.lang.IllegalArgumentException - when the supplied regionKey and id pair doesn't correspond to a valid key of type K.public int getKeyCount(RegionKey key)
IKeyProvidergetKeyCount in interface IKeyProvider<EntryLocation2D>key - the region keypublic boolean isValid(RegionKey key)
isValid in interface IKeyProvider<EntryLocation2D>