Enum DeviceClass

java.lang.Object
java.lang.Enum<DeviceClass>
nl.basjes.parse.useragent.classify.DeviceClass
All Implemented Interfaces:
Serializable, Comparable<DeviceClass>

public enum DeviceClass extends Enum<DeviceClass>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    In some cases the useragent has been altered by anonimization software.
    A mobile device with a AR capabilities.
    A browser built into a car.
    Something that runs in a cloud somewhere.
    The device is assessed as a Desktop/Laptop class device.
    Similar to a Tablet yet in most cases with an eInk screen.
    'Fixed' game systems like the PlayStation and XBox.
    In case scripting is detected in the useragent string, also fallback in really broken situations.
    'Mobile' game systems like the 3DS.
    An appliance with a browser built in (like a large Fridge).
    A device that is mobile yet we do not know if it is a eReader/Tablet/Phone or Watch.
    A mobile device with a small screen (common < 7").
    Robots that visit the site.
    Robots that visit the site pretending they are robots like google, but they are not.
    Robots that visit the site indicating they want to be seen as a Mobile visitor.
    A connected device that allows interacting via a TV sized screen.
    A smart speaker kind of device with a tablet sized screen built in (like Google Nest and Amazon Echo Home).
    A mobile device with a rather large screen (common > 7").
    Similar to Set-top box yet here this is built into the TV.
    We found a deviceclass string that we have no enum value for.
    We really don't know, these are usually useragents that look normal yet contain almost no information about the device.
    A mobile device with a VR capabilities.
    A voice driven 'browser' (i.e.
    A mobile device with a tiny screen (common < 2").
  • Method Summary

    Modifier and Type
    Method
    Description
     
    Returns the enum constant of this type with the specified name.
    static DeviceClass[]
    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 Details

    • DESKTOP

      public static final DeviceClass DESKTOP
      The device is assessed as a Desktop/Laptop class device.
    • ANONYMIZED

      public static final DeviceClass ANONYMIZED
      In some cases the useragent has been altered by anonimization software.
    • MOBILE

      public static final DeviceClass MOBILE
      A device that is mobile yet we do not know if it is a eReader/Tablet/Phone or Watch.
    • TABLET

      public static final DeviceClass TABLET
      A mobile device with a rather large screen (common > 7").
    • PHONE

      public static final DeviceClass PHONE
      A mobile device with a small screen (common < 7").
    • WATCH

      public static final DeviceClass WATCH
      A mobile device with a tiny screen (common < 2"). Normally these are an additional screen for a phone/tablet type device.
    • AUGMENTED_REALITY

      public static final DeviceClass AUGMENTED_REALITY
      A mobile device with a AR capabilities.
    • VIRTUAL_REALITY

      public static final DeviceClass VIRTUAL_REALITY
      A mobile device with a VR capabilities.
    • E_READER

      public static final DeviceClass E_READER
      Similar to a Tablet yet in most cases with an eInk screen.
    • SET_TOP_BOX

      public static final DeviceClass SET_TOP_BOX
      A connected device that allows interacting via a TV sized screen.
    • TV

      public static final DeviceClass TV
      Similar to Set-top box yet here this is built into the TV.
    • GAME_CONSOLE

      public static final DeviceClass GAME_CONSOLE
      'Fixed' game systems like the PlayStation and XBox.
    • HANDHELD_GAME_CONSOLE

      public static final DeviceClass HANDHELD_GAME_CONSOLE
      'Mobile' game systems like the 3DS.
    • HOME_APPLIANCE

      public static final DeviceClass HOME_APPLIANCE
      An appliance with a browser built in (like a large Fridge).
    • VOICE

      public static final DeviceClass VOICE
      A voice driven 'browser' (i.e. ask a question and the page is read aloud). Like Alexa and Google Home.
    • SMART_DISPLAY

      public static final DeviceClass SMART_DISPLAY
      A smart speaker kind of device with a tablet sized screen built in (like Google Nest and Amazon Echo Home).
    • CAR

      public static final DeviceClass CAR
      A browser built into a car.
    • CLOUD

      public static final DeviceClass CLOUD
      Something that runs in a cloud somewhere.
    • ROBOT

      public static final DeviceClass ROBOT
      Robots that visit the site.
    • ROBOT_MOBILE

      public static final DeviceClass ROBOT_MOBILE
      Robots that visit the site indicating they want to be seen as a Mobile visitor.
    • ROBOT_IMITATOR

      public static final DeviceClass ROBOT_IMITATOR
      Robots that visit the site pretending they are robots like google, but they are not.
    • HACKER

      public static final DeviceClass HACKER
      In case scripting is detected in the useragent string, also fallback in really broken situations.
    • UNKNOWN

      public static final DeviceClass UNKNOWN
      We really don't know, these are usually useragents that look normal yet contain almost no information about the device.
    • UNCLASSIFIED

      public static final DeviceClass UNCLASSIFIED
      We found a deviceclass string that we have no enum value for.
  • Method Details

    • values

      public static DeviceClass[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static DeviceClass 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
    • getValue

      public String getValue()