Example usage for org.eclipse.jface.bindings Binding hashCode

List of usage examples for org.eclipse.jface.bindings Binding hashCode

Introduction

In this page you can find the example usage for org.eclipse.jface.bindings Binding hashCode.

Prototype

int hashCode

To view the source code for org.eclipse.jface.bindings Binding hashCode.

Click Source Link

Document

The hash code for this key binding.

Usage

From source file:org.eclipse.e4.ui.keybinding.tests.Bug189167Test.java

License:Open Source License

public void testHashCodeEquals() {
    Binding one = createTestBinding();
    Binding two = createTestBinding();
    Binding b3 = new TestBinding("commandID", "schemeID", "contextID", "locale", "platform", 1, null);
    assertEquals(one, two);//from w  ww.ja  v  a2  s. c  o m
    assertEquals(one.hashCode(), two.hashCode());

    assertFalse(one.equals(b3));
}