Skip to content

Instantly share code, notes, and snippets.

@pettermahlen
Created February 11, 2014 08:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pettermahlen/8931115 to your computer and use it in GitHub Desktop.
Save pettermahlen/8931115 to your computer and use it in GitHub Desktop.
@AutoValue
public abstract class EqualsBreaker {
EqualsBreaker() {}
public static EqualsBreaker create(Set<HostAndPort> hosts) {
return new AutoValue_EqualsBreaker(ImmutableSet.copyOf(hosts));
}
public abstract Set<HostAndPort> hosts();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment