@Test public void testEquals() { new EqualsTester() .addEqualityGroup( new VpcEndpointInterface( "id", "service", "vpc", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of()), new VpcEndpointInterface( "id", "service", "vpc", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "other", "service", "vpc", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "id", "other", "vpc", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "id", "service", "other", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "id", "service", "vpc", ImmutableList.of("other"), ImmutableList.of(), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "id", "service", "vpc", ImmutableList.of(), ImmutableList.of("other"), ImmutableMap.of())) .addEqualityGroup( new VpcEndpointInterface( "id", "service", "vpc", ImmutableList.of(), ImmutableList.of(), ImmutableMap.of("tag", "tag"))) .testEquals(); }
@Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof VpcEndpointInterface)) { return false; } VpcEndpointInterface that = (VpcEndpointInterface) o; return _networkInterfaceIds.equals(that._networkInterfaceIds) && _subnetIds.equals(that._subnetIds) && _id.equals(that._id) && _serviceName.equals(that._serviceName) && _vpcId.equals(that._vpcId) && _tags.equals(that._tags); }
VpcEndpointInterface extends VpcEndpoint { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof VpcEndpointInterface)) { return false; } VpcEndpointInterface that = (VpcEndpointInterface) o; return _networkInterfaceIds.equals(that._networkInterfaceIds) && _subnetIds.equals(that._subnetIds) && _id.equals(that._id) && _serviceName.equals(that._serviceName) && _vpcId.equals(that._vpcId) && _tags.equals(that._tags); } }
VpcEndpointInterface extends VpcEndpoint { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof VpcEndpointInterface)) { return false; } VpcEndpointInterface that = (VpcEndpointInterface) o; return _networkInterfaceIds.equals(that._networkInterfaceIds) && _subnetIds.equals(that._subnetIds) && _id.equals(that._id) && _serviceName.equals(that._serviceName) && _vpcId.equals(that._vpcId) && _tags.equals(that._tags); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); }
VpcEndpointInterface extends VpcEndpoint { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof VpcEndpointInterface)) { return false; } VpcEndpointInterface that = (VpcEndpointInterface) o; return _networkInterfaceIds.equals(that._networkInterfaceIds) && _subnetIds.equals(that._subnetIds) && _id.equals(that._id) && _serviceName.equals(that._serviceName) && _vpcId.equals(that._vpcId) && _tags.equals(that._tags); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); @Nonnull List<String> getNetworkInterfaceIds(); @Nonnull List<String> getSubnetIds(); @Override boolean equals(@Nullable Object o); @Override int hashCode(); }
VpcEndpointInterface extends VpcEndpoint { @Override public boolean equals(@Nullable Object o) { if (this == o) { return true; } if (!(o instanceof VpcEndpointInterface)) { return false; } VpcEndpointInterface that = (VpcEndpointInterface) o; return _networkInterfaceIds.equals(that._networkInterfaceIds) && _subnetIds.equals(that._subnetIds) && _id.equals(that._id) && _serviceName.equals(that._serviceName) && _vpcId.equals(that._vpcId) && _tags.equals(that._tags); } VpcEndpointInterface(
      String id,
      String serviceName,
      String vpcId,
      List<String> networkInterfaceIds,
      List<String> subnetIds,
      Map<String, String> tags); @Nonnull List<String> getNetworkInterfaceIds(); @Nonnull List<String> getSubnetIds(); @Override boolean equals(@Nullable Object o); @Override int hashCode();  }