Enum Class States

java.lang.Object
java.lang.Enum<States>
com.helixframework.validation.address.States
All Implemented Interfaces:
Serializable, Comparable<States>, Constable

public enum States extends Enum<States>
Enumeration of US State and Territory names and codes.
  • Enum Constant Details

    • ALABAMA

      public static final States ALABAMA
    • ALASKA

      public static final States ALASKA
    • AMERICAN_SAMOA

      public static final States AMERICAN_SAMOA
    • ARIZONA

      public static final States ARIZONA
    • ARKANSAS

      public static final States ARKANSAS
    • ARMED_FORCES_AE

      public static final States ARMED_FORCES_AE
    • ARMED_FORCES_AMERICAS

      public static final States ARMED_FORCES_AMERICAS
    • ARMED_FORCES_PACIFIC

      public static final States ARMED_FORCES_PACIFIC
    • CALIFORNIA

      public static final States CALIFORNIA
    • COLORADO

      public static final States COLORADO
    • CONNECTICUT

      public static final States CONNECTICUT
    • DELAWARE

      public static final States DELAWARE
    • DISTRICT_OF_COLUMBIA

      public static final States DISTRICT_OF_COLUMBIA
    • FLORIDA

      public static final States FLORIDA
    • GEORGIA

      public static final States GEORGIA
    • GUAM

      public static final States GUAM
    • HAWAII

      public static final States HAWAII
    • IDAHO

      public static final States IDAHO
    • ILLINOIS

      public static final States ILLINOIS
    • INDIANA

      public static final States INDIANA
    • IOWA

      public static final States IOWA
    • KANSAS

      public static final States KANSAS
    • KENTUCKY

      public static final States KENTUCKY
    • LOUISIANA

      public static final States LOUISIANA
    • MAINE

      public static final States MAINE
    • MARYLAND

      public static final States MARYLAND
    • MASSACHUSETTS

      public static final States MASSACHUSETTS
    • MICHIGAN

      public static final States MICHIGAN
    • MINNESOTA

      public static final States MINNESOTA
    • MISSISSIPPI

      public static final States MISSISSIPPI
    • MISSOURI

      public static final States MISSOURI
    • MONTANA

      public static final States MONTANA
    • NEBRASKA

      public static final States NEBRASKA
    • NEVADA

      public static final States NEVADA
    • NEW_HAMPSHIRE

      public static final States NEW_HAMPSHIRE
    • NEW_JERSEY

      public static final States NEW_JERSEY
    • NEW_MEXICO

      public static final States NEW_MEXICO
    • NEW_YORK

      public static final States NEW_YORK
    • NORTH_CAROLINA

      public static final States NORTH_CAROLINA
    • NORTH_DAKOTA

      public static final States NORTH_DAKOTA
    • OHIO

      public static final States OHIO
    • OKLAHOMA

      public static final States OKLAHOMA
    • OREGON

      public static final States OREGON
    • PENNSYLVANIA

      public static final States PENNSYLVANIA
    • PUERTO_RICO

      public static final States PUERTO_RICO
    • RHODE_ISLAND

      public static final States RHODE_ISLAND
    • SOUTH_CAROLINA

      public static final States SOUTH_CAROLINA
    • SOUTH_DAKOTA

      public static final States SOUTH_DAKOTA
    • TENNESSEE

      public static final States TENNESSEE
    • TEXAS

      public static final States TEXAS
    • UTAH

      public static final States UTAH
    • VERMONT

      public static final States VERMONT
    • VIRGINIA

      public static final States VIRGINIA
    • WASHINGTON

      public static final States WASHINGTON
    • WEST_VIRGINIA

      public static final States WEST_VIRGINIA
    • WISCONSIN

      public static final States WISCONSIN
    • WYOMING

      public static final States WYOMING
  • Method Details

    • values

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

      public static States valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getByName

      public static Optional<States> getByName(String name)
      Gets the enumerated state / territory by name.
      Parameters:
      name - state / territory name
      Returns:
      enumerated state
    • getByCode

      public static Optional<States> getByCode(String code)
      Gets the enumerated state / territory by code.
      Parameters:
      code - state / territory code
      Returns:
      enumerated state
    • getName

      public String getName()
      Gets the state / territory name.
      Returns:
      state / territory name
    • getCode

      public String getCode()
      Gets the state / territory code.
      Returns:
      state / territory code