Class ClickInfo

java.lang.Object
com.massifmaps.ui.ClickInfo

public class ClickInfo extends Object
A basic click information object. Contains information about click type, duration.
  • Constructor Summary

    Constructors
    Constructor
    Description
    ClickInfo(int clickType, float duration)
    Constructs a ClickInfo object from a click type and click duration.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Checks if this object is equal to the specified object.
    int
    Returns the click type.
    float
    Returns the click duration in seconds.
    int
    Returns the hash value of this object.
    Creates a string representation of this click info, useful for logging.

    Methods inherited from class java.lang.Object

    clone, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ClickInfo

      public ClickInfo(int clickType, float duration)
      Constructs a ClickInfo object from a click type and click duration.
      Parameters:
      clickType - The click type.
      duration - The click duration (in seconds).
  • 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.
    • getClickType

      public int getClickType()
      Returns the click type.
      Returns:
      The type of the click performed.
    • getDuration

      public float getDuration()
      Returns the click duration in seconds.
      Returns:
      The click duration in seconds.
    • toString

      public String toString()
      Creates a string representation of this click info, useful for logging.
      Overrides:
      toString in class Object
      Returns:
      The string representation of this click info.