Period

public abstract class Period implements Parcelable


Represents a time segment.

It may contain an open TimeOfWeek, or a close TimeOfWeek, or both.

Summary

Nested types

public abstract class Period.Builder

Builder for Period.

Public constructors

Public methods

static Period.Builder

Returns a Builder

abstract @Nullable TimeOfWeek

Returns the time marker for when the Place closes.

abstract @Nullable TimeOfWeek

Returns the time marker for when the Place opens.

Inherited Constants

From android.os.Parcelable
static final int
static final int
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int
int
abstract void
writeToParcel(Parcel p, int p1)

Public constructors

Period

public Period()

Public methods

builder

public static Period.Builder builder()

Returns a Builder

getClose

public abstract @Nullable TimeOfWeek getClose()

Returns the time marker for when the Place closes.

If a place is always open, the close section will be missing from the response. Clients can rely on always-open being represented as an open period containing day with value 0 and time with value 0000, and no close.

getOpen

public abstract @Nullable TimeOfWeek getOpen()

Returns the time marker for when the Place opens.