public class TrafficLightPresentation extends Presentation
Modifier and Type | Class and Description |
---|---|
static class |
TrafficLightPresentation.Builder
Builder to make presentation construction easier.
|
Presentation.PresentationBuilder<T extends Presentation,B extends Presentation.PresentationBuilder<T,B>>
Constructor and Description |
---|
TrafficLightPresentation()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addTrafficLight(TrafficLight trafficLight)
Adds a traffic light to the traffic lights.
|
static TrafficLightPresentation.Builder |
builder()
Returns a builder for the presentation.
|
List<TrafficLight> |
getTrafficLights()
Returns the traffic lights of the presentation.
|
void |
setTrafficLights(List<TrafficLight> trafficLights)
Sets the traffic lights of the presentation.
|
String |
toString()
Returns a string representation of the object.
|
getNotes, getTitle, setNotes, setTitle
public void setTrafficLights(List<TrafficLight> trafficLights)
trafficLights
- The traffic lights of the presentationpublic void addTrafficLight(TrafficLight trafficLight)
trafficLight
- The traffic light to add to the traffic lightspublic List<TrafficLight> getTrafficLights()
public String toString()
toString
in class Presentation
public static TrafficLightPresentation.Builder builder()
Copyright © 2018. All rights reserved.