Rational

Inheritance: java.lang.Object, com.aspose.psd.xmp.types.XmpTypeBase

public class Rational extends XmpTypeBase

Represents XMP Rational.

Constructors

ConstructorDescription
Rational(int numerator, int denominator)Initializes a new instance of the Rational class.

Methods

MethodDescription
equals(Object arg0)
getClass()
getDenominator()Gets or sets the denominator.
getFloatValue()Gets the float value.
getNumerator()Gets the numerator.
getXmpRepresentation()Gets thestring contained value in XMP format.
hashCode()
notify()
notifyAll()
setDenominator(int value)Gets or sets the denominator.
toString()
wait()
wait(long arg0)
wait(long arg0, int arg1)

Rational(int numerator, int denominator)

public Rational(int numerator, int denominator)

Initializes a new instance of the Rational class.

Parameters:

ParameterTypeDescription
numeratorintThe numerator.
denominatorintThe denominator.

equals(Object arg0)

public boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getDenominator()

public int getDenominator()

Gets or sets the denominator.

Returns: int - The denominator.

getFloatValue()

public float getFloatValue()

Gets the float value.

Returns: float - The float value.

getNumerator()

public int getNumerator()

Gets the numerator.

Value: The numerator.

Returns: int

getXmpRepresentation()

public String getXmpRepresentation()

Gets thestring contained value in XMP format.

Returns: java.lang.String - Returns the string contained value in XMP format.

hashCode()

public native int hashCode()

Returns: int

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

setDenominator(int value)

public void setDenominator(int value)

Gets or sets the denominator.

Parameters:

ParameterTypeDescription
valueintThe denominator.

toString()

public String toString()

Returns: java.lang.String

wait()

public final void wait()

wait(long arg0)

public final void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int