All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.smartcontract.product.xml.RoundingDirectionEnum Maven / Gradle / Ivy

There is a newer version: 1.0.6
Show newest version
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0 
// See https://eclipse-ee4j.github.io/jaxb-ri 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2024.12.05 at 10:53:57 AM CET 
//


package net.finmath.smartcontract.product.xml;

import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;


/**
 * 

Java class for RoundingDirectionEnum. * *

The following schema fragment specifies the expected content contained within this class. *

 * <simpleType name="RoundingDirectionEnum">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}token">
 *     <enumeration value="Up"/>
 *     <enumeration value="Down"/>
 *     <enumeration value="Nearest"/>
 *   </restriction>
 * </simpleType>
 * 
* */ @XmlType(name = "RoundingDirectionEnum") @XmlEnum public enum RoundingDirectionEnum { /** * A fractional number will be rounded up * to the specified number of decimal places (the precision). For example, 5.21 and 5.25 rounded up * to 1 decimal place are 5.3 and 5.3 respectively. * * */ @XmlEnumValue("Up") UP("Up"), /** * A fractional number will be rounded * down to the specified number of decimal places (the precision). For example, 5.29 and 5.25 * rounded down to 1 decimal place are 5.2 and 5.2 respectively. * * */ @XmlEnumValue("Down") DOWN("Down"), /** * A fractional number will be rounded * either up or down to the specified number of decimal places (the precision) depending on its * value. For example, 5.24 would be rounded down to 5.2 and 5.25 would be rounded up to 5.3 if a * precision of 1 decimal place were specified. * * */ @XmlEnumValue("Nearest") NEAREST("Nearest"); private final String value; RoundingDirectionEnum(String v) { value = v; } public String value() { return value; } public static RoundingDirectionEnum fromValue(String v) { for (RoundingDirectionEnum c: RoundingDirectionEnum.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy