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

Method isForbidden

code/src/java/pcgen/core/BodyStructure.java:137–147  ·  view source on GitHub ↗

Identify if the set of types contains any forbidden ones. @param types the types to be checked @return true if any type is not allowed, false otherwise

(Collection<Type> types)

Source from the content-addressed store, hash-verified

135 * @return true if any type is not allowed, false otherwise
136 */
137 public boolean isForbidden(Collection<Type> types)
138 {
139 for (Type type : types)
140 {
141 if (forbiddenTypes.contains(type))
142 {
143 return true;
144 }
145 }
146 return false;
147 }
148}

Callers 1

canEquipMethod · 0.95

Calls 1

containsMethod · 0.65

Tested by

no test coverage detected