Package com.massifmaps.ui
Class ClickInfo
java.lang.Object
com.massifmaps.ui.ClickInfo
A basic click information object. Contains information about click type, duration.
-
Constructor Summary
ConstructorsConstructorDescriptionClickInfo(int clickType, float duration) Constructs a ClickInfo object from a click type and click duration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if this object is equal to the specified object.intReturns the click type.floatReturns the click duration in seconds.inthashCode()Returns the hash value of this object.toString()Creates a string representation of this click info, useful for logging.
-
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
Checks if this object is equal to the specified object. -
hashCode
public int hashCode()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
Creates a string representation of this click info, useful for logging.
-