Enum NetworkType
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum NetworkType extends Enum<NetworkType>
Network connection type.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerortbTypeNumberprivate final StringcategorizedNameprivate final StringdetailedNameprivate final EnumEntries<NetworkType>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_TYPE_UNKNOWNUnknown network type.
NETWORK_TYPE_OFFLINENo network connection.
NETWORK_TYPE_OTHERNetwork type for other connections which are not Wifi or cellular (e.g. Bluetooth).
NETWORK_TYPE_VPNNetwork type for the VPN.
NETWORK_TYPE_ETHERNETNetwork type for an Ethernet connection.
NETWORK_TYPE_WIFINetwork type for a Wifi connection.
NETWORK_TYPE_2GNetwork type for a 2G cellular connection.
NETWORK_TYPE_3GNetwork type for a 3G cellular connection.
NETWORK_TYPE_4GNetwork type for a 4G cellular connection.
NETWORK_TYPE_5G_SANetwork type for a 5G stand-alone (SA) cellular connection.
NETWORK_TYPE_5G_NSANetwork type for a 5G non-stand-alone (NSA) cellular connection.
NETWORK_TYPE_CELLULAR_UNKNOWNNetwork type for cellular connections which cannot be mapped to one of NETWORK_TYPE_2G, NETWORK_TYPE_3G, NETWORK_TYPE_4G, NETWORK_TYPE_5G_SA, NETWORK_TYPE_5G_NSA.
-
Method Summary
Modifier and Type Method Description final NetworkTypevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<NetworkType>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetOrtbTypeNumber()final StringgetCategorizedName()final StringgetDetailedName()final EnumEntries<NetworkType>getEntries()Network connection type. -
-
Method Detail
-
valueOf
final NetworkType valueOf(String value)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
-
values
final Array<NetworkType> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getOrtbTypeNumber
final Integer getOrtbTypeNumber()
-
getCategorizedName
final String getCategorizedName()
-
getDetailedName
final String getDetailedName()
-
getEntries
final EnumEntries<NetworkType> getEntries()
Network connection type.
-
-
-
-