public interface SchemeMapping
MenuScheme| Modifier and Type | Method and Description |
|---|---|
SchemeMapping |
copy()
Makes a copy of this scheme mapping.
|
default Optional<Item> |
get(int key)
Gets an item from the mapping which represents the given key.
|
Item |
getNullable(int key)
Gets an item from the mapping which represents the given key.
|
boolean |
hasMappingFor(int key)
Gets if this scheme has a mapping for a given key
|
@Nonnull default Optional<Item> get(int key)
key - the mapping key@Nullable Item getNullable(int key)
key - the mapping keyboolean hasMappingFor(int key)
key - the mapping key@Nonnull SchemeMapping copy()
Copyright © 2022. All rights reserved.