Enum Class Auction.Type

java.lang.Object
java.lang.Enum<Auction.Type>
com.tnsai.coordination.auction.Auction.Type
All Implemented Interfaces:
Serializable, Comparable<Auction.Type>, Constable
Enclosing class:
Auction

public static enum Auction.Type extends Enum<Auction.Type>
Supported auction types.
  • Enum Constant Details

    • ENGLISH

      public static final Auction.Type ENGLISH
      Ascending price auction. Bidders raise until no one outbids.
    • DUTCH

      public static final Auction.Type DUTCH
      Descending price auction. First bidder to accept wins.
    • SEALED_BID

      public static final Auction.Type SEALED_BID
      Single sealed bid. Highest bidder wins at their bid price.
    • VICKREY

      public static final Auction.Type VICKREY
      Single sealed bid. Highest bidder wins at second-highest price.
  • Method Details

    • values

      public static Auction.Type[] 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 Auction.Type 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