When

public class When

This sealed class represents the different types of event time configurations.

Inheritors

Types

Link copied to clipboard
public final class Date extends When

Class representation of an entire day spans without specific times. Your birthday and holidays would be represented as date subobjects.

Link copied to clipboard
public final class Datespan extends When

Class representation of a specific dates without clock-based start or end times. A business quarter or academic semester would be represented as datespan subobjects.

Link copied to clipboard
public final class Time extends When

Class representation of a specific point in time. A meeting at 2pm would be represented as a time subobject.

Link copied to clipboard
public final class Timespan extends When

Class representation of a time span with start and end times. An hour lunch meeting would be represented as timespan subobjects.

Functions

Link copied to clipboard
public final WhenType getObject()

Returns the WhenType of this When object.