/** * * @param key The string representation of the key * @param defaultValue The default value */ ConfigurationKey(String key, Object defaultValue) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; }
/** * * @param key * @param defaultValue * @param integratorOnly */ ConfigurationKey(String key, Object defaultValue, boolean integratorOnly) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; this.integratorOnly = integratorOnly; }
/** * * @param key * @param defaultValue * @param integratorOnly */ ConfigurationKey(String key, Object defaultValue, boolean integratorOnly) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; this.integratorOnly = integratorOnly; }
/** * * @param key * @param defaultValue * @param integratorOnly */ ConfigurationKey(String key, Object defaultValue, boolean integratorOnly) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; this.integratorOnly = integratorOnly; }
/** * * @param key * @param defaultValue * @param integratorOnly */ ConfigurationKey(String key, Object defaultValue, boolean integratorOnly) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; this.integratorOnly = integratorOnly; }
/** * * @param key * @param defaultValue * @param integratorOnly */ ConfigurationKey(String key, Object defaultValue, boolean integratorOnly) { this.key = key; // Fail fast if a new key with unsupported value type is introduced if (!isValueTypeSupported(defaultValue.getClass())) { throw new IllegalArgumentException("Unsupported value type: " + defaultValue); } this.defaultValue = defaultValue; this.integratorOnly = integratorOnly; }