@Test(expected = UnsupportedOperationException.class) public void removingDataThroughIteratorIsNotAllowed() { Iterator<Object> it = this.dataset.iterator(); it.next(); it.remove(); }
@Override public Iterator<T> iterator() { return Collections.singleton(this.value).iterator(); }
SimpleValuePatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return Collections.singleton(this.value).iterator(); } }
SimpleValuePatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return Collections.singleton(this.value).iterator(); } SimpleValuePatientData(String name, T value); }
SimpleValuePatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return Collections.singleton(this.value).iterator(); } SimpleValuePatientData(String name, T value); @Override String getName(); @Override int size(); @Override T getValue(); @Override Iterator<T> iterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T get(int index); @Override T get(String name); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator(); }
SimpleValuePatientData implements PatientData<T> { @Override public Iterator<T> iterator() { return Collections.singleton(this.value).iterator(); } SimpleValuePatientData(String name, T value); @Override String getName(); @Override int size(); @Override T getValue(); @Override Iterator<T> iterator(); @Override boolean isIndexed(); @Override boolean isNamed(); @Override T get(int index); @Override T get(String name); @Override boolean containsKey(String key); @Override Iterator<String> keyIterator(); @Override Iterator<Entry<String, T>> dictionaryIterator();  }