Occupant

public final class Occupant

Container for the list of room occupants.

Parameters

adults

The number of adults in a room.

childAges

The ages of children in a room.

Constructors

Link copied to clipboard
public Occupant Occupant(Integer adults, List<Integer> childAges)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final Integer adults
Link copied to clipboard
@Valid()
private final List<Integer> childAges

Functions

Link copied to clipboard
public final static Occupant.Builder builder()
Link copied to clipboard
public final Integer getAdults()
Link copied to clipboard
public final List<Integer> getChildAges()
Link copied to clipboard
public final Occupant.Builder toBuilder()