@Test public void nameEqualToReturnsFalseOnDifferentName() { assertFalse(nameEqualTo("denominator.io").apply(zone)); }
public static Filter<Zone> nameEqualTo(final String name) { checkNotNull(name, "name"); return new Filter<Zone>() { @Override public boolean apply(Zone in) { return in != null && name.equals(in.name()); } @Override public String toString() { return "nameEqualTo(" + name + ")"; } }; }
Zones { public static Filter<Zone> nameEqualTo(final String name) { checkNotNull(name, "name"); return new Filter<Zone>() { @Override public boolean apply(Zone in) { return in != null && name.equals(in.name()); } @Override public String toString() { return "nameEqualTo(" + name + ")"; } }; } }
Zones { public static Filter<Zone> nameEqualTo(final String name) { checkNotNull(name, "name"); return new Filter<Zone>() { @Override public boolean apply(Zone in) { return in != null && name.equals(in.name()); } @Override public String toString() { return "nameEqualTo(" + name + ")"; } }; } private  Zones(); }
Zones { public static Filter<Zone> nameEqualTo(final String name) { checkNotNull(name, "name"); return new Filter<Zone>() { @Override public boolean apply(Zone in) { return in != null && name.equals(in.name()); } @Override public String toString() { return "nameEqualTo(" + name + ")"; } }; } private  Zones(); static Filter<Zone> nameEqualTo(final String name); }
Zones { public static Filter<Zone> nameEqualTo(final String name) { checkNotNull(name, "name"); return new Filter<Zone>() { @Override public boolean apply(Zone in) { return in != null && name.equals(in.name()); } @Override public String toString() { return "nameEqualTo(" + name + ")"; } }; } private  Zones(); static Filter<Zone> nameEqualTo(final String name);  }