T - the value typepublic static final class BlackboardMap.Key<T> extends java.lang.Object implements java.lang.Comparable<BlackboardMap.Key<T>>
BlackboardMap.| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(@NotNull BlackboardMap.Key<T> other) |
T |
defaultValue()
Returns the default value.
|
boolean |
equals(@Nullable java.lang.Object other) |
int |
hashCode() |
@NotNull java.lang.String |
name()
Returns the name.
|
static <V> @NotNull BlackboardMap.Key<V> |
of(@NotNull BlackboardMap map,
@NotNull java.lang.String name,
@NotNull java.lang.Class<? super V> type,
V defaultValue)
Returns a new blackboard key for the given
BlackboardMap, with
the given name and type. |
java.lang.String |
toString() |
@NotNull java.lang.Class<T> |
type()
Returns the type.
|
@NotNull public static <V> @NotNull BlackboardMap.Key<V> of(@NotNull @NotNull BlackboardMap map, @NotNull @NotNull java.lang.String name, @NotNull @NotNull java.lang.Class<? super V> type, V defaultValue)
BlackboardMap, with
the given name and type.V - the value typemap - the blackboardname - the nametype - the typedefaultValue - the default value@NotNull public @NotNull java.lang.String name()
@NotNull public @NotNull java.lang.Class<T> type()
public T defaultValue()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(@Nullable
@Nullable java.lang.Object other)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Objectpublic int compareTo(@NotNull
@NotNull BlackboardMap.Key<T> other)
compareTo in interface java.lang.Comparable<BlackboardMap.Key<T>>