org.jcodec.common.model
Class RationalLarge

java.lang.Object
  extended by org.jcodec.common.model.RationalLarge

public class RationalLarge
extends Object

This class is part of JCodec ( www.jcodec.org ) This software is distributed under FreeBSD License

Author:
The JCodec project

Field Summary
static Rational HALF
           
static Rational ONE
           
static RationalLarge ZERO
           
 
Constructor Summary
RationalLarge(long num, long den)
           
 
Method Summary
 RationalLarge divide(long scalar)
           
 RationalLarge divide(RationalLarge other)
           
 RationalLarge divideBy(long scalar)
           
 RationalLarge divideBy(RationalLarge other)
           
 long divideByS(long scalar)
           
 long divideS(long scalar)
           
 boolean equals(Object obj)
           
 boolean equals(RationalLarge other)
           
 RationalLarge flip()
           
 long getDen()
           
 long getNum()
           
 boolean greaterOrEqualTo(RationalLarge sec)
           
 boolean greaterThen(RationalLarge sec)
           
 int hashCode()
           
 boolean lessThen(RationalLarge sec)
           
 RationalLarge minus(long scalar)
           
 RationalLarge minus(RationalLarge other)
           
 RationalLarge multiply(long scalar)
           
 RationalLarge multiply(RationalLarge other)
           
 long multiplyS(long scalar)
           
static Rational parse(String string)
           
 RationalLarge plus(long scalar)
           
 RationalLarge plus(RationalLarge other)
           
static RationalLarge R(long num, long den)
           
 double scalar()
           
 boolean smallerOrEqualTo(RationalLarge sec)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONE

public static final Rational ONE

HALF

public static final Rational HALF

ZERO

public static final RationalLarge ZERO
Constructor Detail

RationalLarge

public RationalLarge(long num,
                     long den)
Method Detail

getNum

public long getNum()

getDen

public long getDen()

parse

public static Rational parse(String string)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

multiplyS

public long multiplyS(long scalar)

divideS

public long divideS(long scalar)

divideByS

public long divideByS(long scalar)

flip

public RationalLarge flip()

R

public static RationalLarge R(long num,
                              long den)

lessThen

public boolean lessThen(RationalLarge sec)

greaterThen

public boolean greaterThen(RationalLarge sec)

smallerOrEqualTo

public boolean smallerOrEqualTo(RationalLarge sec)

greaterOrEqualTo

public boolean greaterOrEqualTo(RationalLarge sec)

equals

public boolean equals(RationalLarge other)

plus

public RationalLarge plus(RationalLarge other)

minus

public RationalLarge minus(RationalLarge other)

plus

public RationalLarge plus(long scalar)

minus

public RationalLarge minus(long scalar)

multiply

public RationalLarge multiply(long scalar)

divide

public RationalLarge divide(long scalar)

divideBy

public RationalLarge divideBy(long scalar)

multiply

public RationalLarge multiply(RationalLarge other)

divide

public RationalLarge divide(RationalLarge other)

divideBy

public RationalLarge divideBy(RationalLarge other)

scalar

public double scalar()


Copyright © 2013. All Rights Reserved.