@Test public void testEquals() { new EqualsTester().addEqualityGroup(securityGroup1, sameAssecurityGroup) .addEqualityGroup(securityGroup2).testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof SecurityGroup) { final SecurityGroup that = (SecurityGroup) obj; return this.getClass() == that.getClass() && Objects.equals(this.securityGroup, that.securityGroup); } return false; }
SecurityGroup { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof SecurityGroup) { final SecurityGroup that = (SecurityGroup) obj; return this.getClass() == that.getClass() && Objects.equals(this.securityGroup, that.securityGroup); } return false; } }
SecurityGroup { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof SecurityGroup) { final SecurityGroup that = (SecurityGroup) obj; return this.getClass() == that.getClass() && Objects.equals(this.securityGroup, that.securityGroup); } return false; } private  SecurityGroup(String securityGroup); }
SecurityGroup { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof SecurityGroup) { final SecurityGroup that = (SecurityGroup) obj; return this.getClass() == that.getClass() && Objects.equals(this.securityGroup, that.securityGroup); } return false; } private  SecurityGroup(String securityGroup); String securityGroup(); static SecurityGroup securityGroup(String securityGroup); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
SecurityGroup { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof SecurityGroup) { final SecurityGroup that = (SecurityGroup) obj; return this.getClass() == that.getClass() && Objects.equals(this.securityGroup, that.securityGroup); } return false; } private  SecurityGroup(String securityGroup); String securityGroup(); static SecurityGroup securityGroup(String securityGroup); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }