Packages

c

o1.excursion

Excursion

class Excursion extends AnyRef

The class Excursion represents group trips that would-be participants need to sign up for in advance.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Excursion
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Excursion(name: String, limit: Int)

    name

    the name of the excursion

    limit

    the maximum number of people that can participate

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. def isFull: Boolean

    Determines whether the excursion is full, that is, if as many or more people have registered an interest in the excursion as can take part.

  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. def lastParticipant: Option[String]

    Determines the latest person who has registered an interest in participating and who fits in.

    Determines the latest person who has registered an interest in participating and who fits in. The person's name is wrapped in an Option; None is returned if there are no participants at all.

  13. val limit: Int
  14. val name: String
  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. def numberOfInterested: Int

    Returns the number of people who have registered an interest in taking part in the excursion.

    Returns the number of people who have registered an interest in taking part in the excursion. (This number may exceed the limit.)

    See also

    registerInterest

  19. def numberOfParticipants: Int

    Returns the number of people that will take part in the excursion, as things stand.

    Returns the number of people that will take part in the excursion, as things stand. This will be a number between 0 (if nobody has registered an interest) and limit (if the excursion is full).

  20. def queueSize: Int

    Returns the number of people queuing up for places.

    Returns the number of people queuing up for places. Unless the excursion is full, this number will be zero.

  21. def registerInterest(newPersonName: String): Boolean

    Registers the given person as wishing to participate in the excursion.

    Registers the given person as wishing to participate in the excursion.

    returns

    true if there was place for the new participant, false if the person was placed in queue instead

  22. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  23. def toString: String

    Returns a textual description of the excursion.

    Returns a textual description of the excursion.

    Definition Classes
    Excursion → AnyRef → Any
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  26. 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 AnyRef

Inherited from Any

Ungrouped