nl.bitwalker.useragentutils
Enum DeviceType

java.lang.Object
  extended by java.lang.Enum<DeviceType>
      extended by nl.bitwalker.useragentutils.DeviceType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DeviceType>

public enum DeviceType
extends java.lang.Enum<DeviceType>

Enum contact for the type of used device

Author:
harald

Enum Constant Summary
COMPUTER
          Standard desktop or laptop computer
DMR
          Digital media receiver like the Apple TV.
GAME_CONSOLE
          Game console like the Wii or Playstation.
MOBILE
          Mobile phone or similar small mobile device
TABLET
          Small tablet type computer.
UNKNOWN
          Other or unknow type of device.
 
Method Summary
 java.lang.String getName()
           
static DeviceType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DeviceType[] 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

COMPUTER

public static final DeviceType COMPUTER
Standard desktop or laptop computer


MOBILE

public static final DeviceType MOBILE
Mobile phone or similar small mobile device


TABLET

public static final DeviceType TABLET
Small tablet type computer.


GAME_CONSOLE

public static final DeviceType GAME_CONSOLE
Game console like the Wii or Playstation.


DMR

public static final DeviceType DMR
Digital media receiver like the Apple TV. No device detection implemented yet for this category. Please send provide user-agent strings if you have some.


UNKNOWN

public static final DeviceType UNKNOWN
Other or unknow type of device.

Method Detail

values

public static DeviceType[] 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 (DeviceType c : DeviceType.values())
    System.out.println(c);

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

valueOf

public static DeviceType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getName

public java.lang.String getName()


Copyright © 2011. All Rights Reserved.