MaxAllowed

public final class MaxAllowed

Maximum occupancy counts.

Parameters

total

Total maximum occupancy allowed.

children

Maximum number of children allowed.

adults

Maximum number of adults allowed.

Constructors

Link copied to clipboard
public MaxAllowed MaxAllowed(BigDecimal total, BigDecimal children, BigDecimal adults)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
@Valid()
private final BigDecimal adults
Link copied to clipboard
@Valid()
private final BigDecimal children
Link copied to clipboard
@Valid()
private final BigDecimal total

Functions

Link copied to clipboard
public final static MaxAllowed.Builder builder()
Link copied to clipboard
public final BigDecimal getAdults()
Link copied to clipboard
public final BigDecimal getChildren()
Link copied to clipboard
public final BigDecimal getTotal()
Link copied to clipboard