Enum WPSGeoFence.Type

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<WPSGeoFence.Type>
    Enclosing class:
    WPSGeoFence

    public static enum WPSGeoFence.Type
    extends java.lang.Enum<WPSGeoFence.Type>
    Geofence type
    Since:
    4.4
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      WPS_GEOFENCE_ENTER
      identify a geofence that triggers when the user enters the defined zone
      WPS_GEOFENCE_INSIDE
      identify a geofence that triggers when the user's location starts within or enters the defined zone.
      WPS_GEOFENCE_LEAVE
      identify a geofence that triggers when the user leaves the defined zone
      WPS_GEOFENCE_OUTSIDE
      identify a geofence that triggers when the user's location starts outside of or leaves the defined zone
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      static WPSGeoFence.Type valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static WPSGeoFence.Type[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • WPS_GEOFENCE_ENTER

        public static final WPSGeoFence.Type WPS_GEOFENCE_ENTER
        identify a geofence that triggers when the user enters the defined zone
      • WPS_GEOFENCE_LEAVE

        public static final WPSGeoFence.Type WPS_GEOFENCE_LEAVE
        identify a geofence that triggers when the user leaves the defined zone
      • WPS_GEOFENCE_INSIDE

        public static final WPSGeoFence.Type WPS_GEOFENCE_INSIDE
        identify a geofence that triggers when the user's location starts within or enters the defined zone.
        Since:
        4.8
      • WPS_GEOFENCE_OUTSIDE

        public static final WPSGeoFence.Type WPS_GEOFENCE_OUTSIDE
        identify a geofence that triggers when the user's location starts outside of or leaves the defined zone
        Since:
        4.8
    • Method Detail

      • values

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

        public static WPSGeoFence.Type 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
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Enum<WPSGeoFence.Type>