@Test public void testVersion20051003() throws IOException, ClassNotFoundException { byte[] serializedBytes = { -0x54, -0x13, 0x00, 0x05, 0x73, 0x72, 0x00, 0x23, 0x63, 0x61, 0x2e, 0x6f, 0x64, 0x65, 0x6c, 0x6c, 0x2e, 0x67, 0x6c, 0x61, 0x7a, 0x65, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x42, 0x61, 0x73, 0x69, 0x63, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x43, -0x39, 0x4e, 0x15, 0x12, -0x37, -0x6d, 0x59, 0x03, 0x00, 0x01, 0x4c, 0x00, 0x04, 0x64, 0x61, 0x74, 0x61, 0x74, 0x00, 0x10, 0x4c, 0x6a, 0x61, 0x76, 0x61, 0x2f, 0x75, 0x74, 0x69, 0x6c, 0x2f, 0x4c, 0x69, 0x73, 0x74, 0x3b, 0x78, 0x70, 0x75, 0x72, 0x00, 0x13, 0x5b, 0x4c, 0x6a, 0x61, 0x76, 0x61, 0x2e, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x4f, 0x62, 0x6a, 0x65, 0x63, 0x74, 0x3b, -0x70, -0x32, 0x58, -0x61, 0x10, 0x73, 0x29, 0x6c, 0x02, 0x00, 0x00, 0x78, 0x70, 0x00, 0x00, 0x00, 0x10, 0x74, 0x00, 0x01, 0x4f, 0x74, 0x00, 0x01, 0x63, 0x74, 0x00, 0x01, 0x74, 0x74, 0x00, 0x01, 0x6f, 0x74, 0x00, 0x01, 0x62, 0x74, 0x00, 0x01, 0x65, 0x74, 0x00, 0x01, 0x72, 0x74, 0x00, 0x01, 0x20, 0x74, 0x00, 0x01, 0x31, 0x74, 0x00, 0x01, 0x30, 0x74, 0x00, 0x01, 0x2c, 0x74, 0x00, 0x01, 0x20, 0x74, 0x00, 0x01, 0x32, 0x74, 0x00, 0x01, 0x30, 0x74, 0x00, 0x01, 0x30, 0x74, 0x00, 0x01, 0x35, 0x75, 0x72, 0x00, 0x2f, 0x5b, 0x4c, 0x63, 0x61, 0x2e, 0x6f, 0x64, 0x65, 0x6c, 0x6c, 0x2e, 0x67, 0x6c, 0x61, 0x7a, 0x65, 0x64, 0x6c, 0x69, 0x73, 0x74, 0x73, 0x2e, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x4c, 0x69, 0x73, 0x74, 0x65, 0x6e, 0x65, 0x72, 0x3b, 0x32, 0x43, 0x6c, 0x62, -0x52, 0x4f, 0x32, 0x0d, 0x02, 0x00, 0x00, 0x78, 0x70, 0x00, 0x00, 0x00, 0x00, 0x78, }; List<String> expected = new ArrayList<>(); expected.addAll(GlazedListsTests.stringToList("October 10, 2005")); Object deserialized = GlazedListsTests.fromBytes(serializedBytes); assertEquals(expected, deserialized); assertEquals("[O, c, t, o, b, e, r, , 1, 0, ,, , 2, 0, 0, 5]", deserialized.toString()); }
@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();  }