@Test public void hashCodeTests() { assertThat(new MessageEvent("msg", LogLevel.DEBUG, "ts").hashCode()) .isEqualTo(new MessageEvent("msg", LogLevel.DEBUG, "ts").hashCode()); }
@Override public int hashCode() { return Objects.hashCode(message, level, timestamp); }
MessageEvent { @Override public int hashCode() { return Objects.hashCode(message, level, timestamp); } }
MessageEvent { @Override public int hashCode() { return Objects.hashCode(message, level, timestamp); } MessageEvent(final String message, final LogLevel level, final String timestamp); }
MessageEvent { @Override public int hashCode() { return Objects.hashCode(message, level, timestamp); } MessageEvent(final String message, final LogLevel level, final String timestamp); static MessageEvent fromMessage(final Map<String, Object> eventMap); static MessageEvent fromLogMessage(final Map<String, Object> eventMap); String getMessage(); LogLevel getLevel(); String getTimestamp(); @Override boolean equals(final Object obj); @Override int hashCode(); }
MessageEvent { @Override public int hashCode() { return Objects.hashCode(message, level, timestamp); } MessageEvent(final String message, final LogLevel level, final String timestamp); static MessageEvent fromMessage(final Map<String, Object> eventMap); static MessageEvent fromLogMessage(final Map<String, Object> eventMap); String getMessage(); LogLevel getLevel(); String getTimestamp(); @Override boolean equals(final Object obj); @Override int hashCode();  }