/** Constructor with class and key. * @param pcClass the target class * @param key the key */ public CharIdentity (Class pcClass, char key) { super (pcClass); construct(key); }
/** Constructor with class and key. * @param pcClass the target class * @param key the key */ public CharIdentity (Class pcClass, char key) { super (pcClass); construct(key); }
/** Constructor with class and key. * @param pcClass the target class * @param key the key */ public CharIdentity (Class pcClass, Character key) { super (pcClass); setKeyAsObject(key); construct(key.charValue()); }
/** Constructor with class and key. * @param pcClass the target class * @param key the key */ public CharIdentity (Class pcClass, Character key) { super (pcClass); setKeyAsObject(key); construct(key.charValue()); }
/** Constructor with class and key. The String must have exactly one * character. * @param pcClass the target class * @param str the key */ public CharIdentity (Class pcClass, String str) { super(pcClass); assertKeyNotNull(str); if (str.length() != 1) throw new IllegalArgumentException( msg.msg("EXC_StringWrongLength")); //NOI18N construct(str.charAt(0)); }
/** Constructor with class and key. The String must have exactly one * character. * @param pcClass the target class * @param str the key */ public CharIdentity (Class pcClass, String str) { super(pcClass); assertKeyNotNull(str); if (str.length() != 1) throw new IllegalArgumentException( msg.msg("EXC_StringWrongLength")); //NOI18N construct(str.charAt(0)); }