com.eurotech.framework.net
Enum NetInterfaceType

java.lang.Object
  extended by java.lang.Enum<NetInterfaceType>
      extended by com.eurotech.framework.net.NetInterfaceType
All Implemented Interfaces:
Serializable, Comparable<NetInterfaceType>

public enum NetInterfaceType
extends Enum<NetInterfaceType>

Used to store network interface types

Author:
eurotech

Enum Constant Summary
ADSL
          The device is an ADSL device supporting PPPoE and PPPoATM protocols.
BOND
          The device is a bond master interface.
BT
          The device is Bluetooth device that provides PAN or DUN capabilities.
ETHERNET
          The device is wired Ethernet device.
INFINIBAND
          The device is an IP-capable InfiniBand interface.
LOOPBACK
          The device is a loopback device.
MODEM
          The device is a modem supporting one or more of analog telephone, CDMA/EVDO, GSM/UMTS/HSPA, or LTE standards to access a cellular or wireline data network.
OLPC_MESH
          The device is an OLPC mesh networking device.
UNKNOWN
          The device type is unknown.
UNUSED1
          Unused
UNUSED2
          Unused
VLAN
          The device is a VLAN interface.
WIFI
          The device is an 802.11 WiFi device.
WIMAX
          The device is an 802.16e Mobile WiMAX device.
 
Method Summary
static NetInterfaceType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NetInterfaceType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNKNOWN

public static final NetInterfaceType UNKNOWN
The device type is unknown.


ETHERNET

public static final NetInterfaceType ETHERNET
The device is wired Ethernet device.


WIFI

public static final NetInterfaceType WIFI
The device is an 802.11 WiFi device.


UNUSED1

public static final NetInterfaceType UNUSED1
Unused


UNUSED2

public static final NetInterfaceType UNUSED2
Unused


BT

public static final NetInterfaceType BT
The device is Bluetooth device that provides PAN or DUN capabilities.


OLPC_MESH

public static final NetInterfaceType OLPC_MESH
The device is an OLPC mesh networking device.


WIMAX

public static final NetInterfaceType WIMAX
The device is an 802.16e Mobile WiMAX device.


MODEM

public static final NetInterfaceType MODEM
The device is a modem supporting one or more of analog telephone, CDMA/EVDO, GSM/UMTS/HSPA, or LTE standards to access a cellular or wireline data network.


INFINIBAND

public static final NetInterfaceType INFINIBAND
The device is an IP-capable InfiniBand interface.


BOND

public static final NetInterfaceType BOND
The device is a bond master interface.


VLAN

public static final NetInterfaceType VLAN
The device is a VLAN interface.


ADSL

public static final NetInterfaceType ADSL
The device is an ADSL device supporting PPPoE and PPPoATM protocols.


LOOPBACK

public static final NetInterfaceType LOOPBACK
The device is a loopback device.

Method Detail

values

public static NetInterfaceType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NetInterfaceType c : NetInterfaceType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NetInterfaceType valueOf(String name)
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.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2013. All Rights Reserved.