public class RationalMetrum extends Object implements MetrumIndication
Modifier and Type | Field and Description |
---|---|
protected static Function2<Integer,Integer,RationalMetrum> |
pack |
static Translet.Parser<RationalMetrum> |
parser |
static RetractableFunction<RationalMetrum,Rational> |
toRational
retract .
|
static Function<RationalMetrum,String> |
toString |
Constructor and Description |
---|
RationalMetrum(BigInteger num,
BigInteger den) |
RationalMetrum(int num,
int den) |
RationalMetrum(Rational rat) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(MetrumIndication met) |
int |
getDenominator() |
int |
getNumerator() |
Rational |
toRational() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
constantRationalMeasureDuration
public static final Function<RationalMetrum,String> toString
public static RetractableFunction<RationalMetrum,Rational> toRational
protected static final Function2<Integer,Integer,RationalMetrum> pack
public static final Translet.Parser<RationalMetrum> parser
public RationalMetrum(int num, int den)
public RationalMetrum(BigInteger num, BigInteger den)
public RationalMetrum(Rational rat)
public int getNumerator()
public int getDenominator()
public boolean equals(MetrumIndication met)
public Rational toRational()