@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup(OBJ, OBJ, new Uint32HighLowExpr(new LiteralInt(1), new LiteralInt(1))) .addEqualityGroup(new Uint32HighLowExpr(new LiteralInt(1), new LiteralInt(2))) .addEqualityGroup(new Uint32HighLowExpr(new LiteralInt(2), new LiteralInt(2))) .testEquals(); }
@Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Uint32HighLowExpr)) { return false; } Uint32HighLowExpr rhs = (Uint32HighLowExpr) obj; return _highExpr.equals(rhs._highExpr) && _lowExpr.equals(rhs._lowExpr); }
Uint32HighLowExpr extends LongExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Uint32HighLowExpr)) { return false; } Uint32HighLowExpr rhs = (Uint32HighLowExpr) obj; return _highExpr.equals(rhs._highExpr) && _lowExpr.equals(rhs._lowExpr); } }
Uint32HighLowExpr extends LongExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Uint32HighLowExpr)) { return false; } Uint32HighLowExpr rhs = (Uint32HighLowExpr) obj; return _highExpr.equals(rhs._highExpr) && _lowExpr.equals(rhs._lowExpr); } Uint32HighLowExpr(IntExpr highExpr, IntExpr lowExpr); }
Uint32HighLowExpr extends LongExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Uint32HighLowExpr)) { return false; } Uint32HighLowExpr rhs = (Uint32HighLowExpr) obj; return _highExpr.equals(rhs._highExpr) && _lowExpr.equals(rhs._lowExpr); } Uint32HighLowExpr(IntExpr highExpr, IntExpr lowExpr); @Override T accept(LongExprVisitor<T, U> visitor, U arg); @Deprecated @Override long evaluate(Environment environment); @JsonProperty(PROP_HIGH_EXPR) @Nonnull IntExpr getHighExpr(); @JsonProperty(PROP_LOW_EXPR) @Nonnull IntExpr getLowExpr(); @Override boolean equals(@Nullable Object obj); @Override int hashCode(); }
Uint32HighLowExpr extends LongExpr { @Override public boolean equals(@Nullable Object obj) { if (this == obj) { return true; } if (!(obj instanceof Uint32HighLowExpr)) { return false; } Uint32HighLowExpr rhs = (Uint32HighLowExpr) obj; return _highExpr.equals(rhs._highExpr) && _lowExpr.equals(rhs._lowExpr); } Uint32HighLowExpr(IntExpr highExpr, IntExpr lowExpr); @Override T accept(LongExprVisitor<T, U> visitor, U arg); @Deprecated @Override long evaluate(Environment environment); @JsonProperty(PROP_HIGH_EXPR) @Nonnull IntExpr getHighExpr(); @JsonProperty(PROP_LOW_EXPR) @Nonnull IntExpr getLowExpr(); @Override boolean equals(@Nullable Object obj); @Override int hashCode();  }