@@ -0,0 +1,2008 @@
+/*%0A * Copyright 2015, TeamDev Ltd. All rights reserved.%0A *%0A * Redistribution and use in source and/or binary forms, with or without%0A * modification, must retain the above copyright notice and the following%0A * disclaimer.%0A *%0A * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS%0A * %22AS IS%22 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT%0A * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR%0A * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT%0A * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,%0A * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT%0A * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,%0A * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY%0A * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT%0A * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE%0A * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.%0A */%0A%0Apackage org.spine3.util;%0A%0Aimport org.spine3.money.Currency;%0Aimport org.spine3.money.Money;%0A%0A/**%0A * The utility class containing convenience methods for %7B@code Money%7D messages creation.%0A *%0A * @see Money%0A * @author Alexander Litus%0A */%0A@SuppressWarnings(%22UtilityClass%22)%0Apublic class MoneyUtil %7B%0A%0A    private MoneyUtil() %7B%0A    %7D%0A%0A    /**%0A     * Creates a new %7B@code Money%7D instance.%0A     *%0A     * @param amount   the amount of minor currency units (for currencies whose minor units are used, e.g. %22cents%22)%0A     *                 or the amount of major currency units (for currencies whose minor currency units are unused%0A     *                 due to negligible value or do not exist at all)%0A     * @param currency the currency of the amount of money%0A     */%0A    public static Money newMoney(int amount, Currency currency) %7B%0A        final Money.Builder result = Money.newBuilder()%0A                .setAmount(amount)%0A                .setCurrency(currency);%0A        return result.build();%0A    %7D%0A%7D%0A

Add MoneyUtil class.