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

Method hasSection

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

Checks whether a section with a particular name exists in this instance. @param name the name of the section @return true if the section exists

(String name)

Source from the content-addressed store, hash-verified

324 * @return true if the section exists
325 */
326 public boolean hasSection(String name) {
327 return this.sections.containsKey(normSection(name));
328 }
329
330 /**
331 * Adds a section if it doesn't exist yet.

Callers 9

getMethod · 0.95
setMethod · 0.95
removeMethod · 0.95
hasOptionMethod · 0.95
addSectionMethod · 0.95
removeSectionMethod · 0.95
optionNamesMethod · 0.95
addCommentMethod · 0.95
addBlankLineMethod · 0.95

Calls 1

normSectionMethod · 0.95

Tested by

no test coverage detected