@Test public void addTest() throws DataAccessLayerException { CLASS_UNDER_TEST.clear(); assertTrue(CLASS_UNDER_TEST.isEmpty()); for (String key : TESTDATA1) { assertTrue(CLASS_UNDER_TEST.add(key)); } assertTrue(CLASS_UNDER_TEST.size() == TESTDATA1.size()); assertTrue(CLASS_UNDER_TEST.containsAll(TESTDATA1)); }
public boolean add(final E e) throws DataAccessLayerException { return e == null ? false : (_map.put(e, PRESENT) == null); }
PersistentSet implements Iterable<E>, Initialisable { public boolean add(final E e) throws DataAccessLayerException { return e == null ? false : (_map.put(e, PRESENT) == null); } }
PersistentSet implements Iterable<E>, Initialisable { public boolean add(final E e) throws DataAccessLayerException { return e == null ? false : (_map.put(e, PRESENT) == null); } PersistentSet(final Class<E> elementClass, final String name); }
PersistentSet implements Iterable<E>, Initialisable { public boolean add(final E e) throws DataAccessLayerException { return e == null ? false : (_map.put(e, PRESENT) == null); } PersistentSet(final Class<E> elementClass, final String name); @Override void initialise(final DataAccessLayerFactory factory); boolean add(final E e); boolean addAll(final Collection<? extends E> collect); void clear(); boolean contains(final E o); boolean containsAll(final Collection<? extends E> collect); boolean isEmpty(); Iterator<E> iterator(); boolean remove(final E o); boolean removeAll(final Collection<? extends E> collect); boolean retainAll(final Collection<? extends E> collect); int size(); @SuppressWarnings("hiding") E[] toArray(final E[] a); }
PersistentSet implements Iterable<E>, Initialisable { public boolean add(final E e) throws DataAccessLayerException { return e == null ? false : (_map.put(e, PRESENT) == null); } PersistentSet(final Class<E> elementClass, final String name); @Override void initialise(final DataAccessLayerFactory factory); boolean add(final E e); boolean addAll(final Collection<? extends E> collect); void clear(); boolean contains(final E o); boolean containsAll(final Collection<? extends E> collect); boolean isEmpty(); Iterator<E> iterator(); boolean remove(final E o); boolean removeAll(final Collection<? extends E> collect); boolean retainAll(final Collection<? extends E> collect); int size(); @SuppressWarnings("hiding") E[] toArray(final E[] a);  }