@Test public void testEquals() { new EqualsTester() .addEqualityGroup(new RibId("h", "v", "r"), new RibId("h", "v", "r")) .addEqualityGroup(new RibId("h1", "v", "r")) .addEqualityGroup(new RibId("h", "v1", "r")) .addEqualityGroup(new RibId("h", "v", "r1")) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibId)) { return false; } RibId ribId = (RibId) o; return Objects.equals(_hostname, ribId._hostname) && Objects.equals(_vrfName, ribId._vrfName) && Objects.equals(_ribName, ribId._ribName); }
RibId implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibId)) { return false; } RibId ribId = (RibId) o; return Objects.equals(_hostname, ribId._hostname) && Objects.equals(_vrfName, ribId._vrfName) && Objects.equals(_ribName, ribId._ribName); } }
RibId implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibId)) { return false; } RibId ribId = (RibId) o; return Objects.equals(_hostname, ribId._hostname) && Objects.equals(_vrfName, ribId._vrfName) && Objects.equals(_ribName, ribId._ribName); } RibId(String hostname, String vrfName, String ribName); }
RibId implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibId)) { return false; } RibId ribId = (RibId) o; return Objects.equals(_hostname, ribId._hostname) && Objects.equals(_vrfName, ribId._vrfName) && Objects.equals(_ribName, ribId._ribName); } RibId(String hostname, String vrfName, String ribName); @JsonProperty(PROP_HOSTNAME) String getHostname(); @JsonProperty(PROP_VRF_NAME) String getVrfName(); @JsonProperty(PROP_RIB_NAME) String getRibName(); @Override boolean equals(Object o); @Override int hashCode(); }
RibId implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } if (!(o instanceof RibId)) { return false; } RibId ribId = (RibId) o; return Objects.equals(_hostname, ribId._hostname) && Objects.equals(_vrfName, ribId._vrfName) && Objects.equals(_ribName, ribId._ribName); } RibId(String hostname, String vrfName, String ribName); @JsonProperty(PROP_HOSTNAME) String getHostname(); @JsonProperty(PROP_VRF_NAME) String getVrfName(); @JsonProperty(PROP_RIB_NAME) String getRibName(); @Override boolean equals(Object o); @Override int hashCode(); static final String DEFAULT_RIB_NAME; }