@Test public void equals() { assertEquality(new BeginSpanEvent(SpanType.CODE, new Attributes()), new BeginSpanEvent(SpanType.CODE, new Attributes())); assertInequality(new BeginSpanEvent(SpanType.CODE, new Attributes()), new BeginSpanEvent(SpanType.BOLD, new Attributes())); }
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof BeginSpanEvent)) { return false; } BeginSpanEvent other = (BeginSpanEvent) obj; return type == other.type; }
BeginSpanEvent extends DocumentBuilderEvent { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof BeginSpanEvent)) { return false; } BeginSpanEvent other = (BeginSpanEvent) obj; return type == other.type; } }
BeginSpanEvent extends DocumentBuilderEvent { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof BeginSpanEvent)) { return false; } BeginSpanEvent other = (BeginSpanEvent) obj; return type == other.type; } BeginSpanEvent(SpanType type, Attributes attributes); }
BeginSpanEvent extends DocumentBuilderEvent { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof BeginSpanEvent)) { return false; } BeginSpanEvent other = (BeginSpanEvent) obj; return type == other.type; } BeginSpanEvent(SpanType type, Attributes attributes); @Override void invoke(DocumentBuilder builder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
BeginSpanEvent extends DocumentBuilderEvent { @Override public boolean equals(Object obj) { if (obj == null) { return false; } if (obj == this) { return true; } if (!(obj instanceof BeginSpanEvent)) { return false; } BeginSpanEvent other = (BeginSpanEvent) obj; return type == other.type; } BeginSpanEvent(SpanType type, Attributes attributes); @Override void invoke(DocumentBuilder builder); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }