MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / hasOption

Method hasOption

builder/index/src/main/java/util/IniParser.java:316–318  ·  view source on GitHub ↗

Checks whether an option exists in a given section. Options in the common section are assumed to not exist in particular sections, unless they're overwritten. @param section the section's name @param option the option's name @return true if the given section has the option

(String section, String option)

Source from the content-addressed store, hash-verified

314 * @return true if the given section has the option
315 */
316 public boolean hasOption(String section, String option) {
317 return hasSection(section) && getSection(section).hasOption(option);
318 }
319
320 /**
321 * Checks whether a section with a particular name exists in this instance.

Callers

nothing calls this directly

Calls 2

hasSectionMethod · 0.95
getSectionMethod · 0.95

Tested by

no test coverage detected