com.esri.core.gps
Enum StopBits

java.lang.Object
  extended by java.lang.Enum<StopBits>
      extended by com.esri.core.gps.StopBits
All Implemented Interfaces:
Serializable, Comparable<StopBits>

public enum StopBits
extends Enum<StopBits>

Represents the standard number of stop-bits per byte. Valid values are

  • ONE
  • ONE_POINT_FIVE
  • TWO

  • Enum Constant Summary
    ONE
               
    ONE_POINT_FIVE
               
    TWO
               
     
    Method Summary
    protected  int getCode()
               
    static StopBits getFromCode(String code)
               
    static StopBits valueOf(String name)
              Returns the enum constant of this type with the specified name.
    static StopBits[] 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

    ONE

    public static final StopBits ONE

    ONE_POINT_FIVE

    public static final StopBits ONE_POINT_FIVE

    TWO

    public static final StopBits TWO
    Method Detail

    values

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

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

    valueOf

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

    getCode

    protected int getCode()

    getFromCode

    public static StopBits getFromCode(String code)
    Parameters:
    code - the encoded string that represents the stop bits.
    Returns:
  • ONE - if input is "0"
  • ONE_POINT_FIVE - if input is "1"
  • TWO - if input is "2"
  • null - otherwise


  • Copyright © 2012. All Rights Reserved.