public enum ProxyType extends Enum<ProxyType>
Enum Constant and Description |
---|
INTERNET |
ON_PREMISE |
Modifier and Type | Method and Description |
---|---|
static ProxyType |
fromIdentifier(String identifier)
Returns the
ProxyType which equals the given identifier. |
static ProxyType |
fromIdentifierOrDefault(String identifier,
ProxyType defaultProxyType)
Returns the
ProxyType which equals the given identifier, or the defaultProxyType in case there is none. |
String |
getIdentifier() |
String |
toString() |
static ProxyType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProxyType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyType INTERNET
public static final ProxyType ON_PREMISE
public static ProxyType[] values()
for (ProxyType c : ProxyType.values()) System.out.println(c);
public static ProxyType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static ProxyType fromIdentifier(@Nullable String identifier) throws IllegalArgumentException
ProxyType
which equals the given identifier.identifier
- The identifier to get a ProxyType
for.ProxyType
.IllegalArgumentException
- If the given identifier does not map to a ProxyType
.public static ProxyType fromIdentifierOrDefault(@Nullable String identifier, ProxyType defaultProxyType)
ProxyType
which equals the given identifier, or the defaultProxyType in case there is none.identifier
- The identifier to get a ProxyType
for.defaultProxyType
- The ProxyType
to return if no matching ProxyType
could be found.ProxyType
or the default, if none is matching.@Generated(value="lombok") public String getIdentifier()
Copyright © 2018 SAP SE. All rights reserved.