This repository was archived by the owner on Jan 18, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed
src/main/java/org/javamoney/moneta Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 2727import javax .money .NumberValue ;
2828import javax .money .format .MonetaryAmountFormat ;
2929
30- import org .javamoney .moneta .internal .FastMoneyAmountBuilder ;
30+ import org .javamoney .moneta .internal .FastMoneyAmountFactory ;
3131import org .javamoney .moneta .spi .DefaultNumberValue ;
3232import org .javamoney .moneta .spi .MonetaryConfig ;
3333import org .javamoney .moneta .spi .MoneyUtils ;
@@ -981,7 +981,7 @@ public FastMoney divideToIntegralValue(double divisor) {
981981
982982 @ Override
983983 public MonetaryAmountFactory <FastMoney > getFactory () {
984- return new FastMoneyAmountBuilder ().setAmount (this );
984+ return new FastMoneyAmountFactory ().setAmount (this );
985985 }
986986
987987}
Original file line number Diff line number Diff line change 2323
2424/**
2525 * Implementation of {@link MonetaryAmountFactoryProviderSpi} creating instances of
26- * {@link FastMoneyAmountBuilder }.
26+ * {@link FastMoneyAmountFactory }.
2727 *
2828 * @author Anatole Tresch
2929 */
@@ -37,7 +37,7 @@ public Class<FastMoney> getAmountType(){
3737 @ Override
3838 public MonetaryAmountFactory <FastMoney > createMonetaryAmountFactory (){
3939 // TODO ensure context!
40- return new FastMoneyAmountBuilder ();
40+ return new FastMoneyAmountFactory ();
4141 }
4242
4343 /*
@@ -51,12 +51,12 @@ public QueryInclusionPolicy getQueryInclusionPolicy(){
5151
5252 @ Override
5353 public MonetaryContext getDefaultMonetaryContext (){
54- return FastMoneyAmountBuilder .DEFAULT_CONTEXT ;
54+ return FastMoneyAmountFactory .DEFAULT_CONTEXT ;
5555 }
5656
5757 @ Override
5858 public MonetaryContext getMaximalMonetaryContext (){
59- return FastMoneyAmountBuilder .MAX_CONTEXT ;
59+ return FastMoneyAmountFactory .MAX_CONTEXT ;
6060 }
6161
6262}
Original file line number Diff line number Diff line change 2424
2525/**
2626 * Implementation of {@link MonetaryAmountFactoryProviderSpi} creating instances of
27- * {@link MoneyAmountBuilder }.
27+ * {@link MoneyAmountFactory }.
2828 *
2929 * @author Anatole Tresch
3030 */
@@ -38,7 +38,7 @@ public Class<Money> getAmountType(){
3838
3939 @ Override
4040 public MonetaryAmountFactory <Money > createMonetaryAmountFactory (){
41- return new MoneyAmountBuilder ();
41+ return new MoneyAmountFactory ();
4242 }
4343
4444 /*
@@ -52,11 +52,11 @@ public QueryInclusionPolicy getQueryInclusionPolicy(){
5252
5353 @ Override
5454 public MonetaryContext getDefaultMonetaryContext (){
55- return MoneyAmountBuilder .DEFAULT_CONTEXT ;
55+ return MoneyAmountFactory .DEFAULT_CONTEXT ;
5656 }
5757
5858 @ Override
5959 public MonetaryContext getMaximalMonetaryContext (){
60- return MoneyAmountBuilder .MAX_CONTEXT ;
60+ return MoneyAmountFactory .MAX_CONTEXT ;
6161 }
6262}
You can’t perform that action at this time.
0 commit comments