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

com.sportradar.uf.datamodel.UFVoidFactor Maven / Gradle / Ivy

//
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
// See http://java.sun.com/xml/jaxb 
// Any modifications to this file will be lost upon recompilation of the source schema. 
// Generated on: 2019.05.22 at 02:21:20 PM CEST 
//


package com.sportradar.uf.datamodel;

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


/**
 * 

Java class for voidFactor. * *

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

*

 * <simpleType name="voidFactor">
 *   <restriction base="{http://www.w3.org/2001/XMLSchema}double">
 *     <enumeration value="0.5"/>
 *     <enumeration value="1"/>
 *   </restriction>
 * </simpleType>
 * 
* */ @XmlType(name = "voidFactor") @XmlEnum(Double.class) public enum UFVoidFactor { /** * REFUND_HALF * */ @XmlEnumValue("0.5") REFUND_HALF(0.5D), /** * REFUND_FULL * */ @XmlEnumValue("1") REFUND_FULL(1.0D); private final double value; UFVoidFactor(double v) { value = v; } public double value() { return value; } public static UFVoidFactor fromValue(double v) { for (UFVoidFactor c: UFVoidFactor.values()) { if (c.value == v) { return c; } } throw new IllegalArgumentException(String.valueOf(v)); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy