Class Room.RoomBuilder

  • Enclosing class:
    Room

    public static class Room.RoomBuilder
    extends java.lang.Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Room build()  
      Room.RoomBuilder numberOfNightsAtRoomRate​(java.lang.String numberOfNightsAtRoomRate)
      For lodging, contains the number of nights charged at the rate provided in the rate field.
      Room.RoomBuilder rate​(java.lang.String rate)
      For lodging, contains the nightly rate for one room.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Method Detail

      • rate

        public Room.RoomBuilder rate​(java.lang.String rate)
        For lodging, contains the nightly rate for one room. For cruise, contains the total cost of the cruise.
        Returns:
        this.
      • numberOfNightsAtRoomRate

        public Room.RoomBuilder numberOfNightsAtRoomRate​(java.lang.String numberOfNightsAtRoomRate)
        For lodging, contains the number of nights charged at the rate provided in the rate field. For cruise, contains the length of the cruise in days.
        Returns:
        this.
      • build

        public Room build()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object