@Test public void testEquals() { Return r = new Return(Drop.instance()); new EqualsTester() .addEqualityGroup(r, r, new Return(Drop.instance())) .addEqualityGroup(new Return(new FibLookup(new LiteralVrfName("vrf")))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Return aReturn = (Return) o; return Objects.equals(getAction(), aReturn.getAction()); }
Return implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Return aReturn = (Return) o; return Objects.equals(getAction(), aReturn.getAction()); } }
Return implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Return aReturn = (Return) o; return Objects.equals(getAction(), aReturn.getAction()); } Return(Action action); }
Return implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Return aReturn = (Return) o; return Objects.equals(getAction(), aReturn.getAction()); } Return(Action action); @JsonProperty(PROP_ACTION) Action getAction(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
Return implements Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Return aReturn = (Return) o; return Objects.equals(getAction(), aReturn.getAction()); } Return(Action action); @JsonProperty(PROP_ACTION) Action getAction(); @Override T accept(StatementVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }