@Test public void testVariableNames() { ConfigurationSection section; section = new ConfigurationSection(); for(int i = 0; i < 10; i++) section.setVariable("var" + i, "value"); assertVariableNames(section, 10); section.setVariable("var9", ""); assertVariableNames(section, 9); section.setVariable("var8", null); assertVariableNames(section, 8); section.removeVariable("var7"); assertVariableNames(section, 7); for(int i = 0; i < 7; i++) section.removeVariable("var" + i); assertVariableNames(section, 0); }
public Iterator<String> variableNames() { return variables.keySet().iterator(); }
ConfigurationSection { public Iterator<String> variableNames() { return variables.keySet().iterator(); } }
ConfigurationSection { public Iterator<String> variableNames() { return variables.keySet().iterator(); } ConfigurationSection(); }
ConfigurationSection { public Iterator<String> variableNames() { return variables.keySet().iterator(); } ConfigurationSection(); String removeVariable(String name); String getVariable(String name); boolean setVariable(String name, String value); Iterator<String> variableNames(); boolean hasVariables(); static int getIntegerValue(String value); static ValueList getListValue(String value, String separator); static float getFloatValue(String value); static boolean getBooleanValue(String value); static long getLongValue(String value); static double getDoubleValue(String value); static String getValue(int value); static String getValue(List<String> value, String separator); static String getValue(float value); static String getValue(boolean value); static String getValue(long value); static String getValue(double value); ConfigurationSection addSection(String name); ConfigurationSection removeSection(String name); boolean removeSection(ConfigurationSection section); ConfigurationSection getSection(String name); Iterator<String> sectionNames(); boolean hasSections(); boolean isEmpty(); void clear(); }
ConfigurationSection { public Iterator<String> variableNames() { return variables.keySet().iterator(); } ConfigurationSection(); String removeVariable(String name); String getVariable(String name); boolean setVariable(String name, String value); Iterator<String> variableNames(); boolean hasVariables(); static int getIntegerValue(String value); static ValueList getListValue(String value, String separator); static float getFloatValue(String value); static boolean getBooleanValue(String value); static long getLongValue(String value); static double getDoubleValue(String value); static String getValue(int value); static String getValue(List<String> value, String separator); static String getValue(float value); static String getValue(boolean value); static String getValue(long value); static String getValue(double value); ConfigurationSection addSection(String name); ConfigurationSection removeSection(String name); boolean removeSection(ConfigurationSection section); ConfigurationSection getSection(String name); Iterator<String> sectionNames(); boolean hasSections(); boolean isEmpty(); void clear();  }