Share via


Type Class

public final class Type
extends ExpandableStringEnum<Type>

The week index. Specifies on which week of the month the dayOfWeek applies.

Field Summary

Modifier and Type Field and Description
static final Type FIRST

Static value First for Type.

static final Type FOURTH

Static value Fourth for Type.

static final Type LAST

Static value Last for Type.

static final Type SECOND

Static value Second for Type.

static final Type THIRD

Static value Third for Type.

Constructor Summary

Constructor Description
Type()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Type value.

Method Summary

Modifier and Type Method and Description
static Type fromString(String name)

Creates or finds a Type from its string representation.

static Collection<Type> values()

Gets known Type values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

FIRST

public static final Type FIRST

Static value First for Type.

FOURTH

public static final Type FOURTH

Static value Fourth for Type.

LAST

public static final Type LAST

Static value Last for Type.

SECOND

public static final Type SECOND

Static value Second for Type.

THIRD

public static final Type THIRD

Static value Third for Type.

Constructor Details

Type

@Deprecated
public Type()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of Type value.

Method Details

fromString

public static Type fromString(String name)

Creates or finds a Type from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding Type.

values

public static Collection<Type> values()

Gets known Type values.

Returns:

known Type values.

Applies to