@Test public void testEquals() { AsnValue tester = AsnValue.of(RemoteAs.instance()); new EqualsTester() .addEqualityGroup( tester, AsnValue.of(RemoteAs.instance()), SerializationUtils.clone(tester), BatfishObjectMapper.clone(tester, LongExpr.class)) .addEqualityGroup(AsnValue.of(LocalAs.instance())) .addEqualityGroup(3L) .testEquals(); }
@Override public boolean equals(Object obj) { return obj instanceof AsnValue && ((AsnValue) obj)._asExpr.equals(_asExpr); }
AsnValue extends LongExpr { @Override public boolean equals(Object obj) { return obj instanceof AsnValue && ((AsnValue) obj)._asExpr.equals(_asExpr); } }
AsnValue extends LongExpr { @Override public boolean equals(Object obj) { return obj instanceof AsnValue && ((AsnValue) obj)._asExpr.equals(_asExpr); } private  AsnValue(@Nonnull AsExpr asExpr); }
AsnValue extends LongExpr { @Override public boolean equals(Object obj) { return obj instanceof AsnValue && ((AsnValue) obj)._asExpr.equals(_asExpr); } private  AsnValue(@Nonnull AsExpr asExpr); static AsnValue of(@Nonnull AsExpr asExpr); @Override T accept(LongExprVisitor<T, U> visitor, U arg); @Override long evaluate(Environment environment); @JsonProperty(PROP_AS) @Nonnull AsExpr getAsExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString(); }
AsnValue extends LongExpr { @Override public boolean equals(Object obj) { return obj instanceof AsnValue && ((AsnValue) obj)._asExpr.equals(_asExpr); } private  AsnValue(@Nonnull AsExpr asExpr); static AsnValue of(@Nonnull AsExpr asExpr); @Override T accept(LongExprVisitor<T, U> visitor, U arg); @Override long evaluate(Environment environment); @JsonProperty(PROP_AS) @Nonnull AsExpr getAsExpr(); @Override boolean equals(Object obj); @Override int hashCode(); @Override String toString();  }