@@ -51,24 +51,24 @@ public interface CurrencyAmount {
5151 * {@link XrpCurrencyAmount}.
5252 * @param issuedCurrencyAmountConsumer A {@link Consumer} that is called if this instance is of type
5353 * {@link IssuedCurrencyAmount}.
54- * @param mpTokenAmountConsumer A {@link Consumer} that is called if this instance is of type
54+ * @param mptCurrencyAmountConsumer A {@link Consumer} that is called if this instance is of type
5555 * {@link MptCurrencyAmount}.
5656 */
5757 default void handle (
5858 final Consumer <XrpCurrencyAmount > xrpCurrencyAmountHandler ,
5959 final Consumer <IssuedCurrencyAmount > issuedCurrencyAmountConsumer ,
60- final Consumer <MptCurrencyAmount > mpTokenAmountConsumer
60+ final Consumer <MptCurrencyAmount > mptCurrencyAmountConsumer
6161 ) {
6262 Objects .requireNonNull (xrpCurrencyAmountHandler );
6363 Objects .requireNonNull (issuedCurrencyAmountConsumer );
64- Objects .requireNonNull (mpTokenAmountConsumer );
64+ Objects .requireNonNull (mptCurrencyAmountConsumer );
6565
6666 if (XrpCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
6767 xrpCurrencyAmountHandler .accept ((XrpCurrencyAmount ) this );
6868 } else if (IssuedCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
6969 issuedCurrencyAmountConsumer .accept ((IssuedCurrencyAmount ) this );
7070 } else if (MptCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
71- mpTokenAmountConsumer .accept ((MptCurrencyAmount ) this );
71+ mptCurrencyAmountConsumer .accept ((MptCurrencyAmount ) this );
7272 } else {
7373 throw new IllegalStateException (String .format ("Unsupported CurrencyAmount Type: %s" , this .getClass ()));
7474 }
@@ -88,18 +88,18 @@ default void handle(
8888 default <R > R map (
8989 final Function <XrpCurrencyAmount , R > xrpCurrencyAmountMapper ,
9090 final Function <IssuedCurrencyAmount , R > issuedCurrencyAmountMapper ,
91- final Function <MptCurrencyAmount , R > mpTokenAmountMapper
91+ final Function <MptCurrencyAmount , R > mptCurrencyAmountMapper
9292 ) {
9393 Objects .requireNonNull (xrpCurrencyAmountMapper );
9494 Objects .requireNonNull (issuedCurrencyAmountMapper );
95- Objects .requireNonNull (mpTokenAmountMapper );
95+ Objects .requireNonNull (mptCurrencyAmountMapper );
9696
9797 if (XrpCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
9898 return xrpCurrencyAmountMapper .apply ((XrpCurrencyAmount ) this );
9999 } else if (IssuedCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
100100 return issuedCurrencyAmountMapper .apply ((IssuedCurrencyAmount ) this );
101101 } else if (MptCurrencyAmount .class .isAssignableFrom (this .getClass ())) {
102- return mpTokenAmountMapper .apply ((MptCurrencyAmount ) this );
102+ return mptCurrencyAmountMapper .apply ((MptCurrencyAmount ) this );
103103 } else {
104104 throw new IllegalStateException (String .format ("Unsupported CurrencyAmount Type: %s" , this .getClass ()));
105105 }
0 commit comments