@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B", null), ImmutableSet.of(), SESSION1, null), new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B", null), ImmutableSet.of(), SESSION1, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A1", new ForwardOutInterface("B", null), ImmutableSet.of(), SESSION1, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B1", null), ImmutableSet.of(), SESSION1, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B", NodeInterfacePair.of("", "")), ImmutableSet.of(), SESSION1, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B1", null), ImmutableSet.of(""), SESSION1, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B1", null), ImmutableSet.of(), SESSION2, null)) .addEqualityGroup( new FirewallSessionTraceInfo( "A", new ForwardOutInterface("B1", null), ImmutableSet.of(), SESSION1, always().build())) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirewallSessionTraceInfo)) { return false; } FirewallSessionTraceInfo that = (FirewallSessionTraceInfo) o; return _hostname.equals(that._hostname) && _sessionScope.equals(that._sessionScope) && _action.equals(that._action) && _sessionFlows.equals(that._sessionFlows) && Objects.equals(_transformation, that._transformation); }
FirewallSessionTraceInfo { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirewallSessionTraceInfo)) { return false; } FirewallSessionTraceInfo that = (FirewallSessionTraceInfo) o; return _hostname.equals(that._hostname) && _sessionScope.equals(that._sessionScope) && _action.equals(that._action) && _sessionFlows.equals(that._sessionFlows) && Objects.equals(_transformation, that._transformation); } }
FirewallSessionTraceInfo { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirewallSessionTraceInfo)) { return false; } FirewallSessionTraceInfo that = (FirewallSessionTraceInfo) o; return _hostname.equals(that._hostname) && _sessionScope.equals(that._sessionScope) && _action.equals(that._action) && _sessionFlows.equals(that._sessionFlows) && Objects.equals(_transformation, that._transformation); } @VisibleForTesting  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      Set<String> incomingInterfaces,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation);  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      SessionScope sessionScope,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation); }
FirewallSessionTraceInfo { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirewallSessionTraceInfo)) { return false; } FirewallSessionTraceInfo that = (FirewallSessionTraceInfo) o; return _hostname.equals(that._hostname) && _sessionScope.equals(that._sessionScope) && _action.equals(that._action) && _sessionFlows.equals(that._sessionFlows) && Objects.equals(_transformation, that._transformation); } @VisibleForTesting  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      Set<String> incomingInterfaces,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation);  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      SessionScope sessionScope,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull SessionAction getAction(); @Nonnull String getHostname(); @Nonnull AclLineMatchExpr getSessionFlows(); @Nonnull SessionScope getSessionScope(); @Nonnull SessionMatchExpr getMatchCriteria(); @Nullable Transformation getTransformation(); }
FirewallSessionTraceInfo { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof FirewallSessionTraceInfo)) { return false; } FirewallSessionTraceInfo that = (FirewallSessionTraceInfo) o; return _hostname.equals(that._hostname) && _sessionScope.equals(that._sessionScope) && _action.equals(that._action) && _sessionFlows.equals(that._sessionFlows) && Objects.equals(_transformation, that._transformation); } @VisibleForTesting  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      Set<String> incomingInterfaces,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation);  FirewallSessionTraceInfo(
      String hostname,
      SessionAction action,
      SessionScope sessionScope,
      SessionMatchExpr sessionFlows,
      @Nullable Transformation transformation); @Override boolean equals(@Nullable Object o); @Override int hashCode(); @Nonnull SessionAction getAction(); @Nonnull String getHostname(); @Nonnull AclLineMatchExpr getSessionFlows(); @Nonnull SessionScope getSessionScope(); @Nonnull SessionMatchExpr getMatchCriteria(); @Nullable Transformation getTransformation();  }