@Test public void testSerializableListeners() throws IOException, ClassNotFoundException { EventList<String> serializableList = new BasicEventList<>(); SerializableListener listener = new SerializableListener(); serializableList.addListEventListener(listener); serializableList.addAll(GlazedListsTests.stringToList("Szarka")); assertEquals(serializableList, SerializableListener.getLastSource()); EventList<String> serializedCopy = GlazedListsTests.serialize(serializableList); assertEquals(serializableList, serializedCopy); assertEquals(serializableList, SerializableListener.getLastSource()); serializedCopy.addAll(GlazedListsTests.stringToList("McCalla")); assertEquals(serializedCopy, SerializableListener.getLastSource()); }
@Override public boolean addAll(Collection<? extends E> collection) { return addAll(size(), collection); }
BasicEventList extends AbstractEventList<E> implements Serializable, RandomAccess { @Override public boolean addAll(Collection<? extends E> collection) { return addAll(size(), collection); } }
BasicEventList extends AbstractEventList<E> implements Serializable, RandomAccess { @Override public boolean addAll(Collection<? extends E> collection) { return addAll(size(), collection); } BasicEventList();  BasicEventList(ReadWriteLock readWriteLock);  BasicEventList(int initalCapacity);  BasicEventList(ListEventPublisher publisher, ReadWriteLock readWriteLock);  BasicEventList(int initialCapacity, ListEventPublisher publisher, ReadWriteLock readWriteLock); @Deprecated  BasicEventList(List<E> list); }
BasicEventList extends AbstractEventList<E> implements Serializable, RandomAccess { @Override public boolean addAll(Collection<? extends E> collection) { return addAll(size(), collection); } BasicEventList();  BasicEventList(ReadWriteLock readWriteLock);  BasicEventList(int initalCapacity);  BasicEventList(ListEventPublisher publisher, ReadWriteLock readWriteLock);  BasicEventList(int initialCapacity, ListEventPublisher publisher, ReadWriteLock readWriteLock); @Deprecated  BasicEventList(List<E> list); @Override void add(int index, E element); @Override boolean add(E element); @Override boolean addAll(Collection<? extends E> collection); @Override boolean addAll(int index, Collection<? extends E> collection); @Override E remove(int index); @Override boolean remove(Object element); @Override void clear(); @Override E set(int index, E element); @Override E get(int index); @Override int size(); @Override boolean removeIf(Predicate<? super E> filter); @Override void replaceAll(UnaryOperator<E> operator); @Override void forEach(Consumer<? super E> action); @Override Stream<E> stream(); @Override Stream<E> parallelStream(); @Override Spliterator<E> spliterator(); @Override void dispose(); }
BasicEventList extends AbstractEventList<E> implements Serializable, RandomAccess { @Override public boolean addAll(Collection<? extends E> collection) { return addAll(size(), collection); } BasicEventList();  BasicEventList(ReadWriteLock readWriteLock);  BasicEventList(int initalCapacity);  BasicEventList(ListEventPublisher publisher, ReadWriteLock readWriteLock);  BasicEventList(int initialCapacity, ListEventPublisher publisher, ReadWriteLock readWriteLock); @Deprecated  BasicEventList(List<E> list); @Override void add(int index, E element); @Override boolean add(E element); @Override boolean addAll(Collection<? extends E> collection); @Override boolean addAll(int index, Collection<? extends E> collection); @Override E remove(int index); @Override boolean remove(Object element); @Override void clear(); @Override E set(int index, E element); @Override E get(int index); @Override int size(); @Override boolean removeIf(Predicate<? super E> filter); @Override void replaceAll(UnaryOperator<E> operator); @Override void forEach(Consumer<? super E> action); @Override Stream<E> stream(); @Override Stream<E> parallelStream(); @Override Spliterator<E> spliterator(); @Override void dispose();  }