Package org.eclipse.jface.bindings
Class Trigger
- java.lang.Object
-
- org.eclipse.jface.bindings.Trigger
-
- All Implemented Interfaces:
java.lang.Comparable
- Direct Known Subclasses:
KeyStroke
public abstract class Trigger extends java.lang.Object implements java.lang.ComparableThe abstract class for any object that can be used as a trigger for a binding. This ensures that trigger conform to certain minimum requirements. Namely, triggers need to be hashable.
- Since:
- 3.1
-
-
Constructor Summary
Constructors Constructor Description Trigger()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanequals(java.lang.Object object)Tests whether this object is equal to another object.abstract inthashCode()Computes the hash code for this object.
-
-
-
Method Detail
-
equals
public abstract boolean equals(java.lang.Object object)
Tests whether this object is equal to another object. A handle object is only equal to another trigger with the same properties.- Overrides:
equalsin classjava.lang.Object- Parameters:
object- The object with which to compare; may benull.- Returns:
trueif the objects are equal;falseotherwise.
-
hashCode
public abstract int hashCode()
Computes the hash code for this object.- Overrides:
hashCodein classjava.lang.Object- Returns:
- The hash code for this object.
-
-