public enum FixingRelativeTo extends Enum<FixingRelativeTo> implements NamedEnum
When calculating the rate fixing dates for a swap leg, the date is calculated relative to another date. The other date is specified by this enum.
Enum Constant and Description |
---|
PERIOD_END
The rate fixing is made relative to the end of each reset period.
|
PERIOD_START
The rate fixing is made relative to the start of each reset period.
|
Modifier and Type | Method and Description |
---|---|
static FixingRelativeTo |
of(String name)
Obtains an instance from the specified name.
|
String |
toString()
Returns the formatted name of the type.
|
static FixingRelativeTo |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FixingRelativeTo[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FixingRelativeTo PERIOD_START
The fixing date is relative to the start date of each reset period within the accrual period, as adjusted by business day conventions.
This can be referred to as "fixing in advance" or "reset in advance".
public static final FixingRelativeTo PERIOD_END
The fixing date is relative to the end date of each reset period within the accrual period, as adjusted by business day conventions.
This can be referred to as "fixing in arrears" or "reset in arrears".
public static FixingRelativeTo[] values()
for (FixingRelativeTo c : FixingRelativeTo.values()) System.out.println(c);
public static FixingRelativeTo valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static FixingRelativeTo of(String name)
Parsing handles the mixed case form produced by toString()
and
the upper and lower case variants of the enum constant name.
name
- the name to parseIllegalArgumentException
- if the name is not knownpublic String toString()
toString
in class Enum<FixingRelativeTo>
Copyright 2009-Present by OpenGamma Inc. and individual contributors
Apache v2 licensed
Additional documentation can be found at strata.opengamma.io.