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

Class ObjectKey

code/src/java/pcgen/cdom/enumeration/ObjectKey.java:91–431  ·  view source on GitHub ↗

This is a Typesafe enumeration of legal Object Characteristics of an object. It is designed to act as an index to a specific Objects within a CDOMObject. ObjectKeys are designed to store items in a CDOMObject in a type-safe fashion. Note that it is possible to use the ObjectKey to cast the object t

Source from the content-addressed store, hash-verified

89 * The class of object stored by this ObjectKey.
90 */
91@SuppressWarnings("checkstyle:FinalClass")
92public class ObjectKey<T>
93{
94
95 private static CaseInsensitiveMap<ObjectKey<?>> map = null;
96
97 public static final ObjectKey<Boolean> USE_UNTRAINED = new ObjectKey<>(Boolean.TRUE);
98
99 public static final ObjectKey<Boolean> EXCLUSIVE = new ObjectKey<>(Boolean.FALSE);
100
101 public static final ObjectKey<CDOMSingleRef<PCAlignment>> ALIGNMENT = new ObjectKey<>(null);
102
103 public static final ObjectKey<Boolean> READ_ONLY = new ObjectKey<>(Boolean.FALSE);
104
105 public static final ObjectKey<CDOMSingleRef<PCStat>> KEY_STAT = new ObjectKey<>(null);
106
107 public static final ObjectKey<SkillArmorCheck> ARMOR_CHECK = new ObjectKey<>(SkillArmorCheck.NONE);
108
109 public static final ObjectKey<Visibility> VISIBILITY = new ObjectKey<>(Visibility.DEFAULT);
110
111 public static final ObjectKey<Boolean> REMOVABLE = new ObjectKey<>(Boolean.TRUE);
112
113 public static final ObjectKey<Region> REGION = new ObjectKey<>(null);
114
115 public static final ObjectKey<Gender> GENDER_LOCK = new ObjectKey<>(null);
116
117 public static final ObjectKey<Boolean> USETEMPLATENAMEFORSUBRACE = new ObjectKey<>(Boolean.FALSE);
118
119 public static final ObjectKey<SubRace> SUBRACE = new ObjectKey<>(null);
120
121 public static final ObjectKey<BigDecimal> CR_MODIFIER = new ObjectKey<>(BigDecimal.ZERO);
122
123 public static final ObjectKey<RaceType> RACETYPE = new ObjectKey<>(null);
124
125 public static final ObjectKey<BigDecimal> COST = new ObjectKey<>(BigDecimal.ZERO);
126
127 public static final ObjectKey<CDOMSingleRef<PCStat>> SPELL_STAT = new ObjectKey<>(null);
128
129 public static final ObjectKey<Boolean> COST_DOUBLE = new ObjectKey<>(null);
130
131 public static final ObjectKey<Boolean> ASSIGN_TO_ALL = new ObjectKey<>(Boolean.FALSE);
132
133 public static final ObjectKey<EqModNameOpt> NAME_OPT = new ObjectKey<>(EqModNameOpt.NORMAL);
134
135 public static final ObjectKey<EqModFormatCat> FORMAT = new ObjectKey<>(EqModFormatCat.PARENS);
136
137 public static final ObjectKey<Boolean> ATTACKS_PROGRESS = new ObjectKey<>(Boolean.TRUE);
138
139 public static final ObjectKey<WieldCategory> WIELD = new ObjectKey<>(null);
140
141 public static final ObjectKey<BigDecimal> WEIGHT = new ObjectKey<>(BigDecimal.ZERO);
142
143 public static final ObjectKey<BigDecimal> WEIGHT_MOD = new ObjectKey<>(BigDecimal.ZERO);
144
145 public static final ObjectKey<CDOMSingleRef<WeaponProf>> WEAPON_PROF = new ObjectKey<>(null);
146
147 public static final ObjectKey<CDOMSingleRef<ArmorProf>> ARMOR_PROF = new ObjectKey<>(null);
148

Callers

nothing calls this directly

Calls 2

buildMapMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected