OrderedProperties extends LinkedList<Pair<String,String>> { public synchronized void load(String file) throws IOException { load0(new LineReader(new FileReader(file))); } OrderedProperties(); synchronized Object addProperty(String key, String value); synchronized void load(String file); synchronized void load(Reader reader); synchronized void load(InputStream inStream);  }
@Test public void test() throws IOException { OrderedProperties op = new OrderedProperties(); op.load("src/test/resources/test2.properties"); op.forEach(p->System.out.println(p)); }