Class Key

java.lang.Object
com.adventure.models.items.Item
com.adventure.models.items.Key

public class Key extends Item
Item used to unlock game graph locked edges.
  • Constructor Details

    • Key

      public Key(String key)
      Constructor.
      Parameters:
      key - Key value.
  • Method Details

    • getValue

      public String getValue()
      Value getter.
      Returns:
      Key value.
    • toString

      public String toString()
      Overrides:
      toString in class Item
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Item