Package protopoet
Class ReservationSpec.Builder
- java.lang.Object
-
- protopoet.ReservationSpec.Builder
-
- All Implemented Interfaces:
Buildable<ReservationSpec>
- Enclosing class:
- ReservationSpec
public static final class ReservationSpec.Builder extends java.lang.Object implements Buildable<ReservationSpec>
Builder for producing new instances ofReservationSpec
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReservationSpec.Builder
addRanges(java.lang.Iterable<FieldRange> rngs)
Appends a field number range to the reservation, only valid for field number reservations.ReservationSpec.Builder
addRanges(FieldRange... rngs)
Appends a field number range to the reservation, only valid for field number reservations.ReservationSpec
build()
Builds a new instance ofReservationSpec
.ReservationSpec.Builder
setReservationComment(java.lang.Iterable<java.lang.String> lines)
Declares a comment above the reservation.ReservationSpec.Builder
setReservationComment(java.lang.String... lines)
Declares a comment above the reservation.
-
-
-
Method Detail
-
setReservationComment
public ReservationSpec.Builder setReservationComment(java.lang.Iterable<java.lang.String> lines)
Declares a comment above the reservation.
-
setReservationComment
public ReservationSpec.Builder setReservationComment(java.lang.String... lines)
Declares a comment above the reservation.
-
addRanges
public ReservationSpec.Builder addRanges(java.lang.Iterable<FieldRange> rngs)
Appends a field number range to the reservation, only valid for field number reservations.
-
addRanges
public ReservationSpec.Builder addRanges(FieldRange... rngs)
Appends a field number range to the reservation, only valid for field number reservations.
-
build
public ReservationSpec build()
Builds a new instance ofReservationSpec
.- Specified by:
build
in interfaceBuildable<ReservationSpec>
-
-