
**Inheritance:**
java.lang.Object, [com.aspose.psd.xmp.types.XmpTypeBase](../../com.aspose.psd.xmp.types/xmptypebase)
```
public class Rational extends XmpTypeBase
```

Represents XMP Rational.
## Constructors

| Constructor | Description |
| --- | --- |
| [Rational(int numerator, int denominator)](#Rational-int-int-) | Initializes a new instance of the  Rational  class. |
## Methods

| Method | Description |
| --- | --- |
| [equals(Object arg0)](#equals-java.lang.Object-) |  |
| [getClass()](#getClass--) |  |
| [getDenominator()](#getDenominator--) | Gets or sets the denominator. |
| [getFloatValue()](#getFloatValue--) | Gets the float value. |
| [getNumerator()](#getNumerator--) | Gets the numerator. |
| [getXmpRepresentation()](#getXmpRepresentation--) | Gets thestring contained value in XMP format. |
| [hashCode()](#hashCode--) |  |
| [notify()](#notify--) |  |
| [notifyAll()](#notifyAll--) |  |
| [setDenominator(int value)](#setDenominator-int-) | Gets or sets the denominator. |
| [toString()](#toString--) |  |
| [wait()](#wait--) |  |
| [wait(long arg0)](#wait-long-) |  |
| [wait(long arg0, int arg1)](#wait-long-int-) |  |
### Rational(int numerator, int denominator) {#Rational-int-int-}
```
public Rational(int numerator, int denominator)
```


Initializes a new instance of the  Rational  class.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| numerator | int | The numerator. |
| denominator | int | The denominator. |

### equals(Object arg0) {#equals-java.lang.Object-}
```
public boolean equals(Object arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | java.lang.Object |  |

**Returns:**
boolean
### getClass() {#getClass--}
```
public final native Class<?> getClass()
```




**Returns:**
java.lang.Class<?>
### getDenominator() {#getDenominator--}
```
public int getDenominator()
```


Gets or sets the denominator.

**Returns:**
int - The denominator.
### getFloatValue() {#getFloatValue--}
```
public float getFloatValue()
```


Gets the float value.

**Returns:**
float - The float value.
### getNumerator() {#getNumerator--}
```
public int getNumerator()
```


Gets the numerator.

Value: The numerator.

**Returns:**
int
### getXmpRepresentation() {#getXmpRepresentation--}
```
public String getXmpRepresentation()
```


Gets thestring contained value in XMP format.

**Returns:**
java.lang.String - Returns the string contained value in XMP format.
### hashCode() {#hashCode--}
```
public native int hashCode()
```




**Returns:**
int
### notify() {#notify--}
```
public final native void notify()
```




### notifyAll() {#notifyAll--}
```
public final native void notifyAll()
```




### setDenominator(int value) {#setDenominator-int-}
```
public void setDenominator(int value)
```


Gets or sets the denominator.

**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| value | int | The denominator. |

### toString() {#toString--}
```
public String toString()
```




**Returns:**
java.lang.String
### wait() {#wait--}
```
public final void wait()
```




### wait(long arg0) {#wait-long-}
```
public final void wait(long arg0)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |

### wait(long arg0, int arg1) {#wait-long-int-}
```
public final void wait(long arg0, int arg1)
```




**Parameters:**
| Parameter | Type | Description |
| --- | --- | --- |
| arg0 | long |  |
| arg1 | int |  |

