public interface TypedKeyStorageImmutable
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(@NotNull TypedKey<?> key)
Checks if the storage contains a key.
|
@NotNull @UnmodifiableView java.util.Collection<java.util.Map.Entry<TypedKey<?>,java.lang.Object>> |
entries()
Gets the entries from the storage.
|
@Nullable java.lang.Object |
get(@NotNull java.lang.String key)
Gets a value from the storage.
|
<T> T |
get(@NotNull TypedKey<T> key)
Gets a value from the storage.
|
java.lang.Object |
getOrDefault(@NotNull java.lang.String key,
@Nullable java.lang.Object defaultValue) |
<T> T |
getOrDefault(@NotNull TypedKey<T> key,
T defaultValue) |
@NotNull java.lang.Object |
getOrThrow(@NotNull java.lang.String key)
Gets a value from the storage.
|
<T> T |
getOrThrow(@NotNull TypedKey<T> key)
Gets a value from the storage.
|
<T> T |
getUnchecked(@NotNull java.lang.String key)
Gets a value from the storage.
|
<T> T |
getUncheckedOrThrow(@NotNull java.lang.String key)
Gets a value from the storage.
|
@NotNull @UnmodifiableView java.util.Collection<TypedKey<?>> |
keys()
Gets the keys from the storage.
|
@NotNull @UnmodifiableView java.util.Map<TypedKey<?>,java.lang.Object> |
map()
Gets the map from the storage.
|
@NotNull @UnmodifiableView java.util.Collection<java.lang.Object> |
values()
Gets the values from the storage.
|
@Nullable
<T> T get(@NotNull
@NotNull TypedKey<T> key)
key - the key@Nullable
@Nullable java.lang.Object get(@NotNull
@NotNull java.lang.String key)
key - the key@Nullable
<T> T getUnchecked(@NotNull
@NotNull java.lang.String key)
key - the key@NotNull
<T> T getOrThrow(@NotNull
@NotNull TypedKey<T> key)
key - the key@Contract(value="_, null -> null; _, !null -> !null")
<T> T getOrDefault(@NotNull
@NotNull TypedKey<T> key,
@Nullable
T defaultValue)
@NotNull
@NotNull java.lang.Object getOrThrow(@NotNull
@NotNull java.lang.String key)
key - the key@Contract(value="_, null -> null; _, !null -> !null")
java.lang.Object getOrDefault(@NotNull
@NotNull java.lang.String key,
@Nullable
@Nullable java.lang.Object defaultValue)
@NotNull
<T> T getUncheckedOrThrow(@NotNull
@NotNull java.lang.String key)
key - the keyboolean contains(@NotNull
@NotNull TypedKey<?> key)
key - the key@NotNull @NotNull @UnmodifiableView java.util.Collection<TypedKey<?>> keys()
@NotNull @NotNull @UnmodifiableView java.util.Collection<java.lang.Object> values()
@NotNull @NotNull @UnmodifiableView java.util.Collection<java.util.Map.Entry<TypedKey<?>,java.lang.Object>> entries()
@NotNull @NotNull @UnmodifiableView java.util.Map<TypedKey<?>,java.lang.Object> map()