@Test public void equalsTest() throws Exception { final Method methodFoo1 = TestDataObject1.class.getMethod("foo"); final UnionValueOptionContext test_uvoc = new UnionValueOptionContext(TestUnion.class, TestDataObject1.class, methodFoo1, ValueTypeCodec.NOOP_CODEC); assertTrue("Equals", TEST_UVOC_1.equals(test_uvoc)); assertFalse("Not equals", TEST_UVOC_1.equals(TEST_UVOC_2)); }
@Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnionValueOptionContext)) { return false; } final UnionValueOptionContext other = (UnionValueOptionContext) obj; return bindingType.equals(other.bindingType); }
UnionValueOptionContext { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnionValueOptionContext)) { return false; } final UnionValueOptionContext other = (UnionValueOptionContext) obj; return bindingType.equals(other.bindingType); } }
UnionValueOptionContext { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnionValueOptionContext)) { return false; } final UnionValueOptionContext other = (UnionValueOptionContext) obj; return bindingType.equals(other.bindingType); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); }
UnionValueOptionContext { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnionValueOptionContext)) { return false; } final UnionValueOptionContext other = (UnionValueOptionContext) obj; return bindingType.equals(other.bindingType); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); @Override int hashCode(); @Override boolean equals(final Object obj); }
UnionValueOptionContext { @Override public boolean equals(final Object obj) { if (this == obj) { return true; } if (!(obj instanceof UnionValueOptionContext)) { return false; } final UnionValueOptionContext other = (UnionValueOptionContext) obj; return bindingType.equals(other.bindingType); } UnionValueOptionContext(final Class<?> unionType, final Class<?> valueType, final Method getter,
            final IllegalArgumentCodec<Object, Object> codec); @Override int hashCode(); @Override boolean equals(final Object obj);  }