Get a class, represented by a given key, from among those possessed by this pc. @param key the class's key @return PCClass
(final String key)
| 903 | * @return PCClass |
| 904 | */ |
| 905 | public PCClass getClassKeyed(final String key) |
| 906 | { |
| 907 | for (PCClass aClass : getClassSet()) |
| 908 | { |
| 909 | if (aClass.getKeyName().equalsIgnoreCase(key)) |
| 910 | { |
| 911 | return aClass; |
| 912 | } |
| 913 | } |
| 914 | |
| 915 | return null; |
| 916 | } |
| 917 | |
| 918 | /** |
| 919 | * Get the class list. |