Class MapMoveInfo

java.lang.Object
com.massifmaps.ui.MapMoveInfo

public class MapMoveInfo extends Object
The payload of the facade's map.moved and map.stable events. The object API takes the same
value as a plain argument; this exists because a facade event carries an object or nothing.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class Object
      Parameters:
      obj - The reference object.
      Returns:
      True when objects are equal, false otherwise.
    • hashCode

      public int hashCode()
      Returns the hash value of this object.
      Overrides:
      hashCode in class Object
      Returns:
      The hash value of this object.
    • getReason

      public int getReason()
      Returns what caused the movement.
      Returns:
      The reason for the movement.