@Test public void testGetOpenCloseChar() { System.out.println("getOpenCloseChar"); OpenCloseCharList instance = new OpenCloseCharList(); OpenCloseChar result = instance.getOpenCloseChar('{'); assertEquals('{', result.getOpen()); assertEquals('}', result.getClose()); }
public OpenCloseChar getOpenCloseChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c || openCloseChars.get(i).getClose() == c) return openCloseChars.get(i); } return null; }
OpenCloseCharList { public OpenCloseChar getOpenCloseChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c || openCloseChars.get(i).getClose() == c) return openCloseChars.get(i); } return null; } }
OpenCloseCharList { public OpenCloseChar getOpenCloseChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c || openCloseChars.get(i).getClose() == c) return openCloseChars.get(i); } return null; } OpenCloseCharList(); }
OpenCloseCharList { public OpenCloseChar getOpenCloseChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c || openCloseChars.get(i).getClose() == c) return openCloseChars.get(i); } return null; } OpenCloseCharList(); boolean isOpenChar(char c); OpenCloseChar getOpenCloseChar(char c); boolean isCloseChar(char c); }
OpenCloseCharList { public OpenCloseChar getOpenCloseChar(char c) { for(int i = 0; i < openCloseChars.size(); ++i) { if(openCloseChars.get(i).getOpen() == c || openCloseChars.get(i).getClose() == c) return openCloseChars.get(i); } return null; } OpenCloseCharList(); boolean isOpenChar(char c); OpenCloseChar getOpenCloseChar(char c); boolean isCloseChar(char c);  }