/** * Loads the {@code ForceConnectionProperty} enum value from a connection * property name. * * @param propertyName A connection property name * @return The {@code ForceConnectionProperty} enum value matching the given * propertyName or {@code null} if no such value exists */ public static ForceConnectionProperty fromPropertyName(String propertyName) { if (propertyName == null) return null; for (ForceConnectionProperty connProp : values()) { if (connProp.getPropertyName().equals(propertyName.toLowerCase())) return connProp; } return null; } }
/** * Loads the {@code ForceConnectionProperty} enum value from a connection * property name. * * @param propertyName A connection property name * @return The {@code ForceConnectionProperty} enum value matching the given * propertyName or {@code null} if no such value exists */ public static ForceConnectionProperty fromPropertyName(String propertyName) { if (propertyName == null) return null; for (ForceConnectionProperty connProp : values()) { if (connProp.getPropertyName().equals(propertyName.toLowerCase())) return connProp; } return null; } }