@Test public void valueIteratorWorks() { Iterator<Object> it = this.dataset.iterator(); Assert.assertTrue(it.hasNext()); Assert.assertSame(this.val1, it.next()); Assert.assertTrue(it.hasNext()); Assert.assertSame(this.val2, it.next()); Assert.assertFalse(it.hasNext()); }
@Override public Iterator<T> iterator() { return this.internalList.iterator(); }
IndexedPatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return this.internalList.iterator(); } }
IndexedPatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return this.internalList.iterator(); } IndexedPatientData(String name, List<T> data); }
IndexedPatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return this.internalList.iterator(); } IndexedPatientData(String name, List<T> data); @Override String getName(); @Override int size(); @Override T get(int index); @Override Iterator<T> iterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T getValue(); @Override T get(String name); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator(); }
IndexedPatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return this.internalList.iterator(); } IndexedPatientData(String name, List<T> data); @Override String getName(); @Override int size(); @Override T get(int index); @Override Iterator<T> iterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T getValue(); @Override T get(String name); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator();  }