@Test public void testEquals() { ForwardOutInterface f = new ForwardOutInterface("a", null); new EqualsTester() .addEqualityGroup(new Object()) .addEqualityGroup(f, f, new ForwardOutInterface("a", null)) .addEqualityGroup(new ForwardOutInterface("b", null)) .addEqualityGroup(new ForwardOutInterface("a", NodeInterfacePair.of("a", "a"))) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ForwardOutInterface)) { return false; } ForwardOutInterface rhs = (ForwardOutInterface) o; return _outgoingInterface.equals(rhs._outgoingInterface) && Objects.equals(_nextHop, rhs._nextHop); }
ForwardOutInterface implements SessionAction { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ForwardOutInterface)) { return false; } ForwardOutInterface rhs = (ForwardOutInterface) o; return _outgoingInterface.equals(rhs._outgoingInterface) && Objects.equals(_nextHop, rhs._nextHop); } }
ForwardOutInterface implements SessionAction { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ForwardOutInterface)) { return false; } ForwardOutInterface rhs = (ForwardOutInterface) o; return _outgoingInterface.equals(rhs._outgoingInterface) && Objects.equals(_nextHop, rhs._nextHop); } ForwardOutInterface(String outgoingInterface, @Nullable NodeInterfacePair nextHop); }
ForwardOutInterface implements SessionAction { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ForwardOutInterface)) { return false; } ForwardOutInterface rhs = (ForwardOutInterface) o; return _outgoingInterface.equals(rhs._outgoingInterface) && Objects.equals(_nextHop, rhs._nextHop); } ForwardOutInterface(String outgoingInterface, @Nullable NodeInterfacePair nextHop); @Override T accept(SessionActionVisitor<T> visitor); @JsonProperty(PROP_NEXT_HOP) @Nullable NodeInterfacePair getNextHop(); @JsonProperty(PROP_OUTGOING_INTERFACE) @Nonnull String getOutgoingInterface(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
ForwardOutInterface implements SessionAction { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof ForwardOutInterface)) { return false; } ForwardOutInterface rhs = (ForwardOutInterface) o; return _outgoingInterface.equals(rhs._outgoingInterface) && Objects.equals(_nextHop, rhs._nextHop); } ForwardOutInterface(String outgoingInterface, @Nullable NodeInterfacePair nextHop); @Override T accept(SessionActionVisitor<T> visitor); @JsonProperty(PROP_NEXT_HOP) @Nullable NodeInterfacePair getNextHop(); @JsonProperty(PROP_OUTGOING_INTERFACE) @Nonnull String getOutgoingInterface(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }