19 package org.sleuthkit.autopsy.contentviewers.osaccount;
21 import java.util.ArrayList;
22 import java.util.Iterator;
23 import java.util.List;
29 final class Section
implements Iterable<Section.SectionData> {
31 private final String title;
32 private final List<SectionData> sectionData =
new ArrayList<>();
34 Section(String title) {
43 void addSectionData(SectionData data) {
44 sectionData.add(data);
57 public Iterator<SectionData> iterator() {
58 return sectionData.iterator();
61 final static class SectionData
implements Iterable<Section.RowData<String, String>> {
63 private final String title;
64 private final List<RowData<String, String>> data;
75 SectionData(String title) {
77 this.data =
new ArrayList<>();
95 void addData(String properytName, String propertyValue) {
96 data.add(
new RowData<>(properytName, propertyValue));
100 public Iterator<RowData<String, String>> iterator() {
101 return data.iterator();
111 static class RowData<K, V> {
114 private final V value;
122 RowData(K key, V value) {