public static void initialize() { if (!_initialized) { for (int i = 0; i < ADJECTIVE_POSITIONS.length; i++) KEY_TO_OBJECT_MAP.put(ADJECTIVE_POSITIONS[i].getKey(), ADJECTIVE_POSITIONS[i]); _initialized = true; } }
private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException { in.defaultReadObject(); // set adjective position to reference the static instance defined in the current runtime environment _adjectivePosition = getAdjectivePositionForKey(_adjectivePosition.getKey()); }