Enum NeonLocationType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<NeonLocationType>

    public enum NeonLocationType
    extends java.lang.Enum<NeonLocationType>
    Type describing a filter for location data passed back from Neon
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      CORRECTED
      Includes PER_STEP locations, also specifies that the application would like location history to be corrected over time.
      CURRENT
      Specifies that the application is only interested in the most up to date location There will potentially (but rarely) be small gaps in the location data reported.
      PER_STEP
      Includes CURRENT locations, also specifies that the application would like to be updated with the user's location at every step.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static NeonLocationType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static NeonLocationType[] 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

      • CURRENT

        public static final NeonLocationType CURRENT
        Specifies that the application is only interested in the most up to date location There will potentially (but rarely) be small gaps in the location data reported.
      • PER_STEP

        public static final NeonLocationType PER_STEP
        Includes CURRENT locations, also specifies that the application would like to be updated with the user's location at every step. This will prevent any gaps in the reported location data.
      • CORRECTED

        public static final NeonLocationType CORRECTED
        Includes PER_STEP locations, also specifies that the application would like location history to be corrected over time. In this case, locations reported are not reported in order.
    • Method Detail

      • values

        public static NeonLocationType[] 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 (NeonLocationType c : NeonLocationType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NeonLocationType 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