@Test public void testMinorPart() { MonetaryAmount m = Monetary.getDefaultAmountFactory() .setCurrency( "CHF").setNumber(new BigDecimal( "1234.56789")).create(); MonetaryAmount r = m.with(MonetaryOperators.minorPart()); assertEquals( Monetary.getDefaultAmountFactory().setCurrency("CHF") .setNumber( new BigDecimal("0.56789")).create(), r); }
public static MonetaryOperator minorPart() { return EXTRACTOR_MINOR_PART; }
MonetaryOperators { public static MonetaryOperator minorPart() { return EXTRACTOR_MINOR_PART; } }
MonetaryOperators { public static MonetaryOperator minorPart() { return EXTRACTOR_MINOR_PART; } private  MonetaryOperators(); }
MonetaryOperators { public static MonetaryOperator minorPart() { return EXTRACTOR_MINOR_PART; } private  MonetaryOperators(); static MonetaryOperator reciprocal(); static MonetaryOperator permil(BigDecimal decimal); static MonetaryOperator permil(Number number); static MonetaryOperator permil(Number number, MathContext mathContext); static MonetaryOperator percent(BigDecimal decimal); static MonetaryOperator percent(Number number); static MonetaryOperator minorPart(); static MonetaryOperator majorPart(); static MonetaryOperator rounding(); static MonetaryOperator rounding(RoundingMode roundingMode); static MonetaryOperator rounding(RoundingMode roundingMode, int scale); static MonetaryOperator rounding(int scale); }
MonetaryOperators { public static MonetaryOperator minorPart() { return EXTRACTOR_MINOR_PART; } private  MonetaryOperators(); static MonetaryOperator reciprocal(); static MonetaryOperator permil(BigDecimal decimal); static MonetaryOperator permil(Number number); static MonetaryOperator permil(Number number, MathContext mathContext); static MonetaryOperator percent(BigDecimal decimal); static MonetaryOperator percent(Number number); static MonetaryOperator minorPart(); static MonetaryOperator majorPart(); static MonetaryOperator rounding(); static MonetaryOperator rounding(RoundingMode roundingMode); static MonetaryOperator rounding(RoundingMode roundingMode, int scale); static MonetaryOperator rounding(int scale);  }