public class Rational extends Object
Java class for rational complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="rational">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="numerator" type="{http://www.w3.org/2001/XMLSchema}int"/>
<element name="denominator" type="{http://www.w3.org/2001/XMLSchema}int"/>
</sequence>
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected int |
denominator |
protected int |
numerator |
| Constructor and Description |
|---|
Rational() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDenominator()
Gets the value of the denominator property.
|
int |
getNumerator()
Gets the value of the numerator property.
|
void |
setDenominator(int value)
Sets the value of the denominator property.
|
void |
setNumerator(int value)
Sets the value of the numerator property.
|
public int getNumerator()
public void setNumerator(int value)
public int getDenominator()
public void setDenominator(int value)
Copyright © 2013–2021 Sébastien Bigaret, Patrick Meyer. All rights reserved.