Duration

public final class Duration

The maximum amount of time for a rental that still qualifies for this rate.This may or may not be the same as the current rental duration.

Parameters

unit

The unit for minimum amount of time for a rental.

count

The minimum number of units that qualify for minimum amount of time for a rental.

Constructors

Link copied to clipboard
public Duration Duration(String unit, Long count)

Types

Link copied to clipboard
public final class Builder

Properties

Link copied to clipboard
private final Long count
Link copied to clipboard
@NotNull()
@Valid()
private final String unit

Functions

Link copied to clipboard
public final static Duration.Builder builder()
Link copied to clipboard
public final Long getCount()
Link copied to clipboard
public final String getUnit()
Link copied to clipboard
public final Duration.Builder toBuilder()