@Test public void testCreateMemberListGenerics() { CompositeList<String> strings = new CompositeList<>(); EventList<String> moreStrings = strings.createMemberList(); EventList<Integer> integers = strings.createMemberList(); assertSame(moreStrings.getPublisher(), integers.getPublisher()); assertSame(moreStrings.getReadWriteLock(), integers.getReadWriteLock()); }
public <E> EventList<E> createMemberList() { return new BasicEventList<>(getPublisher(), getReadWriteLock()); }
CompositeList extends CollectionList<EventList<E>, E> { public <E> EventList<E> createMemberList() { return new BasicEventList<>(getPublisher(), getReadWriteLock()); } }
CompositeList extends CollectionList<EventList<E>, E> { public <E> EventList<E> createMemberList() { return new BasicEventList<>(getPublisher(), getReadWriteLock()); } CompositeList(); @Deprecated  CompositeList(ReadWriteLock lock);  CompositeList(ListEventPublisher publisher, ReadWriteLock lock); }
CompositeList extends CollectionList<EventList<E>, E> { public <E> EventList<E> createMemberList() { return new BasicEventList<>(getPublisher(), getReadWriteLock()); } CompositeList(); @Deprecated  CompositeList(ReadWriteLock lock);  CompositeList(ListEventPublisher publisher, ReadWriteLock lock); void addMemberList(EventList<E> member); EventList<E> createMemberList(); void removeMemberList(EventList<E> list); }
CompositeList extends CollectionList<EventList<E>, E> { public <E> EventList<E> createMemberList() { return new BasicEventList<>(getPublisher(), getReadWriteLock()); } CompositeList(); @Deprecated  CompositeList(ReadWriteLock lock);  CompositeList(ListEventPublisher publisher, ReadWriteLock lock); void addMemberList(EventList<E> member); EventList<E> createMemberList(); void removeMemberList(EventList<E> list);  }