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

Method getRange

code/src/java/pcgen/core/doomsdaybook/DDList.java:132–144  ·  view source on GitHub ↗

Get the range @return the range

()

Source from the content-addressed store, hash-verified

130 * @return the range
131 */
132 private int getRange()
133 {
134 int rangeTop = this.stream()
135 .mapToInt(WeightedDataValue::getWeight)
136 .sum();
137
138 if (rangeTop <= 0)
139 { //the die will nullpointer if it is not at least 1
140 rangeTop = 1;
141 }
142
143 return rangeTop;
144 }
145
146 /**
147 * Set the title of the list

Callers 1

getDataMethod · 0.95

Calls 1

streamMethod · 0.80

Tested by

no test coverage detected