MCPcopy Create free account
hub / github.com/PCGen/pcgen / validateSequence

Method validateSequence

code/src/java/pcgen/core/XPTable.java:84–91  ·  view source on GitHub ↗
(String levelValue)

Source from the content-addressed store, hash-verified

82 }
83
84 public boolean validateSequence(String levelValue)
85 {
86 int value = getIntValue(levelValue);
87 return infoMap.values()
88 .stream()
89 .mapToInt(levelInfo -> getIntValue(levelInfo.getLevelString()))
90 .noneMatch(intValue -> value < intValue);
91 }
92
93 private static int getIntValue(String level)
94 {

Callers 1

validateLevelInfoMethod · 0.95

Calls 4

getIntValueMethod · 0.95
streamMethod · 0.80
getLevelStringMethod · 0.80
valuesMethod · 0.45

Tested by

no test coverage detected