@Test public void equals() { TypeLiteral<UndefinedEventMapped> a = new TypeLiteral<UndefinedEventMapped>() { }; TypeLiteral<UndefinedEventMapped> b = new TypeLiteral<UndefinedEventMapped>() { }; assertEquals(a, b); assertEquals(b, a); }
@SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return o != null && (this == o || type.equals(((TypeLiteral) o).type)); }
TypeLiteral { @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return o != null && (this == o || type.equals(((TypeLiteral) o).type)); } }
TypeLiteral { @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return o != null && (this == o || type.equals(((TypeLiteral) o).type)); } TypeLiteral(); }
TypeLiteral { @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return o != null && (this == o || type.equals(((TypeLiteral) o).type)); } TypeLiteral(); Type type(); @Override final int hashCode(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override boolean equals(Object o); }
TypeLiteral { @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override public boolean equals(Object o) { return o != null && (this == o || type.equals(((TypeLiteral) o).type)); } TypeLiteral(); Type type(); @Override final int hashCode(); @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") @Override boolean equals(Object o);  }