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

Method removeProperty

code/src/java/pcgen/system/PropertyContext.java:173–186  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

171 }
172
173 Object removeProperty(String key)
174 {
175 Object oldValue;
176 if (parent != null)
177 {
178 oldValue = parent.removeProperty(name + '.' + key);
179 }
180 else
181 {
182 oldValue = properties.remove(key);
183 }
184 support.firePropertyChange(key, oldValue, null);
185 return oldValue;
186 }
187
188 /**
189 * Gets a property of the specified key as a list of String. If the list is not found, an empty list is returned.

Callers 2

setPropertyMethod · 0.95

Calls 1

removeMethod · 0.65

Tested by

no test coverage detected