@Test public void testEquals() { SetOrigin so = new SetOrigin(new LiteralOrigin(OriginType.INCOMPLETE, 1L)); new EqualsTester() .addEqualityGroup(so, so, new SetOrigin(new LiteralOrigin(OriginType.INCOMPLETE, 1L))) .addEqualityGroup(new SetOrigin(new LiteralOrigin(OriginType.IGP, 1L))) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof SetOrigin)) { return false; } SetOrigin other = (SetOrigin) o; return _origin.equals(other._origin); }
SetOrigin extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof SetOrigin)) { return false; } SetOrigin other = (SetOrigin) o; return _origin.equals(other._origin); } }
SetOrigin extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof SetOrigin)) { return false; } SetOrigin other = (SetOrigin) o; return _origin.equals(other._origin); } SetOrigin(OriginExpr origin); }
SetOrigin extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof SetOrigin)) { return false; } SetOrigin other = (SetOrigin) o; return _origin.equals(other._origin); } SetOrigin(OriginExpr origin); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override @Nonnull Result execute(Environment environment); @JsonProperty(PROP_ORIGIN_TYPE) OriginExpr getOriginType(); }
SetOrigin extends Statement { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof SetOrigin)) { return false; } SetOrigin other = (SetOrigin) o; return _origin.equals(other._origin); } SetOrigin(OriginExpr origin); @Override T accept(StatementVisitor<T, U> visitor, U arg); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override @Nonnull Result execute(Environment environment); @JsonProperty(PROP_ORIGIN_TYPE) OriginExpr getOriginType();  }