public class TrafficLightState extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TrafficLightState.Builder
Builder to make traffic light state construction easier.
|
static class |
TrafficLightState.StateType
Represents the types of traffic light state.
|
Constructor and Description |
---|
TrafficLightState()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
static TrafficLightState.Builder |
builder()
Returns a builder for the traffic light state.
|
int |
getMax()
Returns the maximum of the state.
|
int |
getMin()
Returns the minimum of the state.
|
String |
getType()
Returns the type of the state.
|
void |
setMax(int max)
Sets the maximum of the state.
|
void |
setMin(int min)
Sets the minimum of the state.
|
void |
setType(String type)
Sets the type of the state.
|
void |
setType(TrafficLightState.StateType type)
Sets the type of the state.
|
String |
toString()
Returns a string representation of the object.
|
public void setType(String type)
type
- The type of the statepublic void setType(TrafficLightState.StateType type)
type
- The type of the statepublic String getType()
public void setMin(int min)
min
- The minimum of the statepublic int getMin()
public void setMax(int max)
max
- The maximum of the statepublic int getMax()
public String toString()
public static TrafficLightState.Builder builder()
Copyright © 2018. All rights reserved.