@Test public void testAddRemoveContains() { assertFalse(AHashSet.empty ().contains("a")); assertTrue (AHashSet.empty ().with("a").contains("a")); assertFalse(AHashSet.empty ().with("a").contains("b")); assertTrue (AHashSet.empty ().with("a").with("b").contains("b")); assertFalse(AHashSet.empty ().with("a").with("b").contains("c")); assertFalse(AHashSet.empty ().with("a").with("b").without("a").contains("a")); assertTrue (AHashSet.empty ().with("a").with("b").without("a").contains("b")); assertFalse(AHashSet.empty ().with("a").with("b").without("a").contains("c")); }
public static <T> AHashSet<T> empty () { return empty (AEquality.EQUALS); }
AHashSet extends MapAsSetWrapper<T, AHashSet<T>> { public static <T> AHashSet<T> empty () { return empty (AEquality.EQUALS); } }
AHashSet extends MapAsSetWrapper<T, AHashSet<T>> { public static <T> AHashSet<T> empty () { return empty (AEquality.EQUALS); } private  AHashSet(AMap<T, ?> inner); }
AHashSet extends MapAsSetWrapper<T, AHashSet<T>> { public static <T> AHashSet<T> empty () { return empty (AEquality.EQUALS); } private  AHashSet(AMap<T, ?> inner); static AHashSet<T> empty(); @SuppressWarnings ("unchecked") static AHashSet<T> empty(AEquality equality); @SuppressWarnings ("unchecked") static AHashSet<T> create(T... elements); static AHashSet<T> create(Iterable<T> elements); @SuppressWarnings ("unchecked") static AHashSet<T> create(AEquality equality, T... elements); static AHashSet<T> create(AEquality equality, Iterable<T> elements); static AHashSet<T> fromMap(AHashMap<T, ?> inner); }
AHashSet extends MapAsSetWrapper<T, AHashSet<T>> { public static <T> AHashSet<T> empty () { return empty (AEquality.EQUALS); } private  AHashSet(AMap<T, ?> inner); static AHashSet<T> empty(); @SuppressWarnings ("unchecked") static AHashSet<T> empty(AEquality equality); @SuppressWarnings ("unchecked") static AHashSet<T> create(T... elements); static AHashSet<T> create(Iterable<T> elements); @SuppressWarnings ("unchecked") static AHashSet<T> create(AEquality equality, T... elements); static AHashSet<T> create(AEquality equality, Iterable<T> elements); static AHashSet<T> fromMap(AHashMap<T, ?> inner);  }