@Test public void keyIteratorWorks() { Iterator<String> kit = this.dataset.keyIterator(); Assert.assertTrue(kit.hasNext()); Assert.assertSame("key1", kit.next()); Assert.assertTrue(kit.hasNext()); Assert.assertSame("key2", kit.next()); Assert.assertFalse(kit.hasNext()); }
@Override public Iterator<String> keyIterator() { return this.internalMap.keySet().iterator(); }
DictionaryPatientData implements PatientData<T> { @Override public Iterator<String> keyIterator() { return this.internalMap.keySet().iterator(); } }
DictionaryPatientData implements PatientData<T> { @Override public Iterator<String> keyIterator() { return this.internalMap.keySet().iterator(); } DictionaryPatientData(String name, Map<String, T> data); }
DictionaryPatientData implements PatientData<T> { @Override public Iterator<String> keyIterator() { return this.internalMap.keySet().iterator(); } DictionaryPatientData(String name, Map<String, T> data); @Override String getName(); @Override int size(); @Override T get(String name); @Override Iterator<T> iterator(); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T getValue(); @Override T get(int index); }
DictionaryPatientData implements PatientData<T> { @Override public Iterator<String> keyIterator() { return this.internalMap.keySet().iterator(); } DictionaryPatientData(String name, Map<String, T> data); @Override String getName(); @Override int size(); @Override T get(String name); @Override Iterator<T> iterator(); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T getValue(); @Override T get(int index);  }