@Test public void testEquals() { LiteralVrfName lv = new LiteralVrfName("vrf"); new EqualsTester() .addEqualityGroup(lv, lv, new LiteralVrfName("vrf")) .addEqualityGroup(new LiteralVrfName("vrf2")) .addEqualityGroup(new Object()) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof LiteralVrfName)) { return false; } LiteralVrfName that = (LiteralVrfName) o; return _vrfName.equals(that._vrfName); }
LiteralVrfName implements VrfExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof LiteralVrfName)) { return false; } LiteralVrfName that = (LiteralVrfName) o; return _vrfName.equals(that._vrfName); } }
LiteralVrfName implements VrfExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof LiteralVrfName)) { return false; } LiteralVrfName that = (LiteralVrfName) o; return _vrfName.equals(that._vrfName); } LiteralVrfName(String vrfName); }
LiteralVrfName implements VrfExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof LiteralVrfName)) { return false; } LiteralVrfName that = (LiteralVrfName) o; return _vrfName.equals(that._vrfName); } LiteralVrfName(String vrfName); @Nonnull @JsonProperty(PROP_VRF_NAME) String getVrfName(); @Override T accept(VrfExprVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString(); }
LiteralVrfName implements VrfExpr { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof LiteralVrfName)) { return false; } LiteralVrfName that = (LiteralVrfName) o; return _vrfName.equals(that._vrfName); } LiteralVrfName(String vrfName); @Nonnull @JsonProperty(PROP_VRF_NAME) String getVrfName(); @Override T accept(VrfExprVisitor<T> visitor); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override String toString();  }