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

Method toString

code/src/java/pcgen/cdom/enumeration/ObjectKey.java:401–421  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

399 }
400
401 @Override
402 public String toString()
403 {
404 /*
405 * CONSIDER Should this find a way to do a Two-Way Map or something to
406 * that effect?
407 */
408 if (map == null)
409 {
410 buildMap();
411 }
412 for (Map.Entry<?, ObjectKey<?>> me : map.entrySet())
413 {
414 if (me.getValue() == this)
415 {
416 return me.getKey().toString();
417 }
418 }
419 // Error
420 return "";
421 }
422
423 public static Collection<ObjectKey<?>> getAllConstants()
424 {

Callers

nothing calls this directly

Calls 5

buildMapMethod · 0.95
getValueMethod · 0.65
toStringMethod · 0.65
getKeyMethod · 0.65
entrySetMethod · 0.45

Tested by

no test coverage detected