Class SimpleCommandMeta

java.lang.Object
org.incendo.cloud.meta.CommandMeta
org.incendo.cloud.meta.SimpleCommandMeta
All Implemented Interfaces:
CloudKeyContainer

@API(status=STABLE) public class SimpleCommandMeta extends CommandMeta
A simple immutable string-string map containing command meta
  • Constructor Details

  • Method Details

    • optional

      public final <V> @NonNull Optional<V> optional(@NonNull CloudKey<V> key)
      Description copied from interface: CloudKeyContainer
      Returns the value associated with the given key.
      Type Parameters:
      V - the type of the value
      Parameters:
      key - the key
      Returns:
      the value
    • optional

      public <V> @NonNull Optional<V> optional(@NonNull String key)
      Returns the value associated with the given key.
      Type Parameters:
      V - the type of the value
      Parameters:
      key - the key
      Returns:
      the value
    • contains

      public boolean contains(@NonNull CloudKey<?> key)
      Returns whether the registry contains a value associated with the given key.
      Parameters:
      key - the key
      Returns:
      true if the value exists, or false if it does not
    • all

      public final @NonNull Map<CloudKey<?>,? extends @NonNull Object> all()
      Description copied from interface: CloudKeyContainer
      Returns all stored values.
      Returns:
      immutable view of all values
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object