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

Method getEquipSlotByName

code/src/java/pcgen/core/Globals.java:232–239  ·  view source on GitHub ↗

Get equipment slot by name @param aName @return equipment slot

(final String aName)

Source from the content-addressed store, hash-verified

230 * @return equipment slot
231 */
232 public static EquipSlot getEquipSlotByName(final String aName)
233 {
234 return SystemCollections.getUnmodifiableEquipSlotList()
235 .stream()
236 .filter(es -> es.getSlotName().equals(aName))
237 .findFirst()
238 .orElse(null);
239 }
240
241 /**
242 * Set equipment slot type count

Callers 2

addChildrenToPathMethod · 0.95
canEquipItemMethod · 0.95

Calls 5

streamMethod · 0.80
getSlotNameMethod · 0.80
orElseMethod · 0.65
equalsMethod · 0.65

Tested by

no test coverage detected