Search in sources :

Example 1 with Rational

use of org.whole.lang.math.model.Rational in project whole by wholeplatform.

the class RationalPart method getModelSpecificChildren.

protected List<IEntity> getModelSpecificChildren() {
    Rational entity = getModelEntity();
    List<IEntity> list = new ArrayList<IEntity>(2);
    list.add(entity.getNumerator());
    list.add(entity.getDenominator());
    return list;
}
Also used : Rational(org.whole.lang.math.model.Rational) IEntity(org.whole.lang.model.IEntity) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 Rational (org.whole.lang.math.model.Rational)1 IEntity (org.whole.lang.model.IEntity)1