@Test public void testEquals() { new EqualsTester().addEqualityGroup(name1, sameAsName1) .addEqualityGroup(name2).testEquals(); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TunnelName) { final TunnelName that = (TunnelName) obj; return this.getClass() == that.getClass() && Objects.equals(this.str, that.str); } return false; }
TunnelName { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TunnelName) { final TunnelName that = (TunnelName) obj; return this.getClass() == that.getClass() && Objects.equals(this.str, that.str); } return false; } }
TunnelName { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TunnelName) { final TunnelName that = (TunnelName) obj; return this.getClass() == that.getClass() && Objects.equals(this.str, that.str); } return false; } private  TunnelName(String tunnelName); }
TunnelName { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TunnelName) { final TunnelName that = (TunnelName) obj; return this.getClass() == that.getClass() && Objects.equals(this.str, that.str); } return false; } private  TunnelName(String tunnelName); static TunnelName tunnelName(String tunnelName); String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); }
TunnelName { @Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj instanceof TunnelName) { final TunnelName that = (TunnelName) obj; return this.getClass() == that.getClass() && Objects.equals(this.str, that.str); } return false; } private  TunnelName(String tunnelName); static TunnelName tunnelName(String tunnelName); String value(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }