Packages

c

o1.auctionhouse

InstantPurchase

abstract class InstantPurchase extends ItemForSale

The class InstantPurchase represents items that have been put up for sale in an electronic auction house in such a way that they may be immediately purchased at any time while the item is open. As soon as anyone purchases the item, the sale is finalized and nobody else can buy the item.

Linear Supertypes
ItemForSale, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. InstantPurchase
  2. ItemForSale
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new InstantPurchase(description: String)

Abstract Value Members

  1. abstract def advanceOneDay(): Unit

    Records one day as having passed.

    Records one day as having passed. The effects of this depend on the way the item is sold.

    Definition Classes
    ItemForSale
  2. abstract def isExpired: Boolean

    Determines if the item has expired, that is, if the sale has ended due to a lack of interest and without the item having been sold.

    Determines if the item has expired, that is, if the sale has ended due to a lack of interest and without the item having been sold. How soon this happens depends on the way the item is sold.

    Definition Classes
    ItemForSale
  3. abstract def price: Int

    Returns the current price of the item, that is, the price that the item is selling for at the moment.

    Returns the current price of the item, that is, the price that the item is selling for at the moment. If the item is not open, the sale price (if bought) or closing price (if expired) is returned.

    Definition Classes
    ItemForSale

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def buy(buyer: String): Boolean

    Buys the item for the given customer.

    Buys the item for the given customer. The sale now has a buyer (and is therefore no longer open). This only works, however, if the sale was open to begin with. The method returns true if the item was successfully bought, false if the purchase failed.

  6. def buyer: Option[String]

    Returns the buyer of the item, wrapped in an Option; None is returned if nobody has bought the item yet.

    Returns the buyer of the item, wrapped in an Option; None is returned if nobody has bought the item yet.

    Definition Classes
    InstantPurchaseItemForSale
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. val description: String
    Definition Classes
    ItemForSale
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def isOpen: Boolean

    Determines if the sale is open, that is, if the item can still be bought.

    Determines if the sale is open, that is, if the item can still be bought. An item like this is always open if nobody has yet bought it and the opportunity to buy it has not yet expired.

    Definition Classes
    InstantPurchaseItemForSale
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  19. def toString: String

    Returns a textual description of the item.

    Returns a textual description of the item. This text is the same as that returned by description.

    Definition Classes
    ItemForSale → AnyRef → Any
  20. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  21. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  22. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from ItemForSale

Inherited from AnyRef

Inherited from Any

Ungrouped