Class FractionsKt

  • All Implemented Interfaces:

    
    public final class FractionsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Fraction fraction(Double value)
      final static Fraction fraction(Integer numerator, Integer denominator)
      final static Fraction fraction(Integer numerator)
      final static Fraction fraction(Float value)
      final static Fraction toFraction(Double $self)
      final static Fraction toFraction(Integer $self, Integer denominator)
      final static Fraction toFraction(Float $self)
      final static Fraction plus(Fraction $self, Fraction other)
      final static Fraction plus(Fraction $self, Integer other)
      final static Fraction plus(Integer $self, Fraction other)
      final static Fraction plus(Fraction $self, Float other)
      final static Fraction plus(Float $self, Fraction other)
      final static Fraction minus(Fraction $self, Fraction other)
      final static Fraction minus(Fraction $self, Integer other)
      final static Fraction minus(Integer $self, Fraction other)
      final static Fraction minus(Fraction $self, Float other)
      final static Fraction minus(Float $self, Fraction other)
      final static Fraction times(Fraction $self, Fraction other)
      final static Fraction times(Fraction $self, Integer other)
      final static Fraction times(Integer $self, Fraction other)
      final static Fraction times(Fraction $self, Float other)
      final static Fraction times(Float $self, Fraction other)
      final static Fraction div(Fraction $self, Fraction other)
      final static Fraction div(Fraction $self, Integer other)
      final static Fraction div(Integer $self, Fraction other)
      final static Fraction div(Fraction $self, Float other)
      final static Fraction div(Float $self, Fraction other)
      final static Pair<Integer, Fraction> split(Fraction $self)
      final static Integer component1(Fraction $self)
      final static Integer component2(Fraction $self)
      final static Fraction fixedFraction(Integer amount, Integer capacity)
      final static Fraction fixedFraction(Long amount, Long capacity)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail