Class Keyed

java.lang.Object
net.pl3x.map.core.Keyed
Direct Known Subclasses:
Biome, Block, Heightmap, IconImage, IO.Type, Layer, Marker, Player, Renderer, Renderer.Builder, TileImage, World

public abstract class Keyed extends Object
Represents a key identified object.
  • Constructor Details

    • Keyed

      public Keyed(@NotNull @NotNull String key)
      Create a new key identified object.
      Parameters:
      key - key for object
  • Method Details

    • getKey

      @NotNull public @NotNull String getKey()
      Get the identifying key.
      Returns:
      the key
    • equals

      public boolean equals(@Nullable @Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      @NotNull public @NotNull String toString()
      Overrides:
      toString in class Object