code: private static void setupFractionPart(final SimpleFraction fraction, final FractionNumber fractionNumber) {
          
          fractionNumber.denominatorPart = String.valueOf(fraction.getDenominator());
          
          if(fractionNumber.isWholeType()) {
              int wholeNumber = fraction.getNumerator() / fraction.getDenominator();
              fractionNumber.wholeNumberPart = wholeNumber == 0 ? "" : String.valueOf(wholeNumber);
              
              int numerator = fraction.getNumerator() % fraction.getDenominator();
              fractionNumber.numeratorPart = String.valueOf(numerator);
              
          } else {
              fractionNumber.wholeNumberPart = "";
              fractionNumber.numeratorPart = String.valueOf(fraction.getNumerator());
              
          }
      }
docs: 分数の各部品を設定する
  @param fraction
  @param fractionNumber