@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new CrossVrfEdgeId("vrf", "rib"), new CrossVrfEdgeId("vrf", "rib")) .addEqualityGroup(new CrossVrfEdgeId("vrf2", "rib")) .addEqualityGroup(new CrossVrfEdgeId("vrf", "rib2")) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof CrossVrfEdgeId)) { return false; } CrossVrfEdgeId that = (CrossVrfEdgeId) o; return Objects.equals(_fromVrf, that._fromVrf) && Objects.equals(_toRib, that._toRib); }
CrossVrfEdgeId implements Comparable<CrossVrfEdgeId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof CrossVrfEdgeId)) { return false; } CrossVrfEdgeId that = (CrossVrfEdgeId) o; return Objects.equals(_fromVrf, that._fromVrf) && Objects.equals(_toRib, that._toRib); } }
CrossVrfEdgeId implements Comparable<CrossVrfEdgeId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof CrossVrfEdgeId)) { return false; } CrossVrfEdgeId that = (CrossVrfEdgeId) o; return Objects.equals(_fromVrf, that._fromVrf) && Objects.equals(_toRib, that._toRib); } CrossVrfEdgeId(String fromVrf, String toRib); }
CrossVrfEdgeId implements Comparable<CrossVrfEdgeId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof CrossVrfEdgeId)) { return false; } CrossVrfEdgeId that = (CrossVrfEdgeId) o; return Objects.equals(_fromVrf, that._fromVrf) && Objects.equals(_toRib, that._toRib); } CrossVrfEdgeId(String fromVrf, String toRib); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(CrossVrfEdgeId o); @Override String toString(); }
CrossVrfEdgeId implements Comparable<CrossVrfEdgeId> { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof CrossVrfEdgeId)) { return false; } CrossVrfEdgeId that = (CrossVrfEdgeId) o; return Objects.equals(_fromVrf, that._fromVrf) && Objects.equals(_toRib, that._toRib); } CrossVrfEdgeId(String fromVrf, String toRib); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Override int compareTo(CrossVrfEdgeId o); @Override String toString();  }