@Test public void testMkString() { assertEquals("%&", AHashSet.empty () .mkString("%", "--", "&")); assertEquals("%a&", AHashSet.empty ().with("a") .mkString("%", "--", "&")); final String s1 = AHashSet.empty ().with("a").with("b").mkString("%", "--", "&"); assertTrue("%b--a&".equals(s1) || "%a--b&".equals(s1)); assertEquals("", AHashSet.empty () .mkString("#")); assertEquals("a", AHashSet.empty ().with("a") .mkString("#")); final String s2 = AHashSet.empty ().with("a").with("b").mkString("#"); assertTrue("b#a".equals(s2) || "a#b".equals(s2)); }
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);  }