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