()
| 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 | { |