@Test public void testEquals() { new EqualsTester() .addEqualityGroup(5) .addEqualityGroup(RoutingProtocolInstance.direct()) .addEqualityGroup(RoutingProtocolInstance.ospf("a"), RoutingProtocolInstance.ospf("a")) .addEqualityGroup(RoutingProtocolInstance.ospf("b")) .addEqualityGroup(RoutingProtocolInstance.ospfv3("a")) .addEqualityGroup(RoutingProtocolInstance.eigrp("a")) .addEqualityGroup(RoutingProtocolInstance.staticc()) .testEquals(); }
@Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RoutingProtocolInstance)) { return false; } RoutingProtocolInstance that = (RoutingProtocolInstance) o; return _protocol == that._protocol && Objects.equals(_tag, that._tag); }
RoutingProtocolInstance implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RoutingProtocolInstance)) { return false; } RoutingProtocolInstance that = (RoutingProtocolInstance) o; return _protocol == that._protocol && Objects.equals(_tag, that._tag); } }
RoutingProtocolInstance implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RoutingProtocolInstance)) { return false; } RoutingProtocolInstance that = (RoutingProtocolInstance) o; return _protocol == that._protocol && Objects.equals(_tag, that._tag); } private  RoutingProtocolInstance(NxosRoutingProtocol protocol, @Nullable String tag); }
RoutingProtocolInstance implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RoutingProtocolInstance)) { return false; } RoutingProtocolInstance that = (RoutingProtocolInstance) o; return _protocol == that._protocol && Objects.equals(_tag, that._tag); } private  RoutingProtocolInstance(NxosRoutingProtocol protocol, @Nullable String tag); static RoutingProtocolInstance bgp(long asn); static RoutingProtocolInstance direct(); static RoutingProtocolInstance eigrp(String tag); static RoutingProtocolInstance isis(String tag); static RoutingProtocolInstance lisp(); static RoutingProtocolInstance ospf(String tag); static RoutingProtocolInstance ospfv3(String tag); static RoutingProtocolInstance rip(String tag); static RoutingProtocolInstance staticc(); @Nonnull NxosRoutingProtocol getProtocol(); @Nullable String getTag(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
RoutingProtocolInstance implements Serializable { @Override public boolean equals(Object o) { if (this == o) { return true; } else if (!(o instanceof RoutingProtocolInstance)) { return false; } RoutingProtocolInstance that = (RoutingProtocolInstance) o; return _protocol == that._protocol && Objects.equals(_tag, that._tag); } private  RoutingProtocolInstance(NxosRoutingProtocol protocol, @Nullable String tag); static RoutingProtocolInstance bgp(long asn); static RoutingProtocolInstance direct(); static RoutingProtocolInstance eigrp(String tag); static RoutingProtocolInstance isis(String tag); static RoutingProtocolInstance lisp(); static RoutingProtocolInstance ospf(String tag); static RoutingProtocolInstance ospfv3(String tag); static RoutingProtocolInstance rip(String tag); static RoutingProtocolInstance staticc(); @Nonnull NxosRoutingProtocol getProtocol(); @Nullable String getTag(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }