Home Reference Source
public class | source

ComputedDayOfField

Field type that computes DayOfWeek, WeekOfMonth, and WeekOfYear based on a WeekFields. A separate Field instance is required for each different WeekFields; combination of start of week and minimum number of days. Constructors are provided to create fields for DayOfWeek, WeekOfMonth, and WeekOfYear.

Static Method Summary

Static Public Methods
public static

ofDayOfWeekField(weekDef: *): *

Returns a field to access the day of week, computed based on a WeekFields.

public static

ofWeekBasedYearField(weekDef: *): *

Returns a field to access the week-based-year, computed based on a WeekFields.

public static

ofWeekOfMonthField(weekDef: *): *

Returns a field to access the week of month, computed based on a WeekFields.

public static

Returns a field to access the week of week-based-year, computed based on a WeekFields.

public static

ofWeekOfYearField(weekDef: *): *

Returns a field to access the week of year, computed based on a WeekFields.

Method Summary

Public Methods
public

adjustInto(temporal: *, newValue: *): *

public

baseUnit(): *

public

displayName(locale: *): *

public

getFrom(temporal: *): *

public

isDateBased(): boolean

public

isSupportedBy(temporal: *): boolean

public

isTimeBased(): boolean

public

name(): *

public

range(): *

public

rangeRefinedBy(temporal: *): *

public

rangeUnit(): *

public

resolve(fieldValues: *, partialTemporal: *, resolverStyle: *): *

public

toString(): string

Static Public Methods

public static ofDayOfWeekField(weekDef: *): * source

Returns a field to access the day of week, computed based on a WeekFields.

The WeekDefintion of the first day of the week is used with the ISO DAY_OF_WEEK field to compute week boundaries.

Params:

NameTypeAttributeDescription
weekDef *

Return:

*

public static ofWeekBasedYearField(weekDef: *): * source

Returns a field to access the week-based-year, computed based on a WeekFields.

Params:

NameTypeAttributeDescription
weekDef *

Return:

*

See:

public static ofWeekOfMonthField(weekDef: *): * source

Returns a field to access the week of month, computed based on a WeekFields.

Params:

NameTypeAttributeDescription
weekDef *

Return:

*

See:

public static ofWeekOfWeekBasedYearField(weekDef: *): * source

Returns a field to access the week of week-based-year, computed based on a WeekFields.

Params:

NameTypeAttributeDescription
weekDef *

Return:

*

See:

public static ofWeekOfYearField(weekDef: *): * source

Returns a field to access the week of year, computed based on a WeekFields.

Params:

NameTypeAttributeDescription
weekDef *

Return:

*

See:

Public Methods

public adjustInto(temporal: *, newValue: *): * source

Params:

NameTypeAttributeDescription
temporal *
newValue *

Return:

*

public baseUnit(): * source

Return:

*

public displayName(locale: *): * source

Params:

NameTypeAttributeDescription
locale *

Return:

*

public getFrom(temporal: *): * source

Params:

NameTypeAttributeDescription
temporal *

Return:

*

public isDateBased(): boolean source

Return:

boolean

public isSupportedBy(temporal: *): boolean source

Params:

NameTypeAttributeDescription
temporal *

Return:

boolean

public isTimeBased(): boolean source

Return:

boolean

public name(): * source

Return:

*

public range(): * source

Return:

*

public rangeRefinedBy(temporal: *): * source

Params:

NameTypeAttributeDescription
temporal *

Return:

*

public rangeUnit(): * source

Return:

*

public resolve(fieldValues: *, partialTemporal: *, resolverStyle: *): * source

Params:

NameTypeAttributeDescription
fieldValues *
partialTemporal *
resolverStyle *

Return:

*

public toString(): string source

Return:

string