@Test public void testEquals() { MonetaryFormat mf1 = new MonetaryFormat(true); MonetaryFormat mf2 = new MonetaryFormat(true); assertEquals(mf1, mf2); }
@Override public boolean equals(final Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; final MonetaryFormat other = (MonetaryFormat) o; if (!Objects.equals(this.negativeSign, other.negativeSign)) return false; if (!Objects.equals(this.positiveSign, other.positiveSign)) return false; if (!Objects.equals(this.zeroDigit, other.zeroDigit)) return false; if (!Objects.equals(this.decimalMark, other.decimalMark)) return false; if (!Objects.equals(this.minDecimals, other.minDecimals)) return false; if (!Objects.equals(this.decimalGroups, other.decimalGroups)) return false; if (!Objects.equals(this.shift, other.shift)) return false; if (!Objects.equals(this.roundingMode, other.roundingMode)) return false; if (!Arrays.equals(this.codes, other.codes)) return false; if (!Objects.equals(this.codeSeparator, other.codeSeparator)) return false; if (!Objects.equals(this.codePrefixed, other.codePrefixed)) return false; return true; }
MonetaryFormat { @Override public boolean equals(final Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; final MonetaryFormat other = (MonetaryFormat) o; if (!Objects.equals(this.negativeSign, other.negativeSign)) return false; if (!Objects.equals(this.positiveSign, other.positiveSign)) return false; if (!Objects.equals(this.zeroDigit, other.zeroDigit)) return false; if (!Objects.equals(this.decimalMark, other.decimalMark)) return false; if (!Objects.equals(this.minDecimals, other.minDecimals)) return false; if (!Objects.equals(this.decimalGroups, other.decimalGroups)) return false; if (!Objects.equals(this.shift, other.shift)) return false; if (!Objects.equals(this.roundingMode, other.roundingMode)) return false; if (!Arrays.equals(this.codes, other.codes)) return false; if (!Objects.equals(this.codeSeparator, other.codeSeparator)) return false; if (!Objects.equals(this.codePrefixed, other.codePrefixed)) return false; return true; } }
MonetaryFormat { @Override public boolean equals(final Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; final MonetaryFormat other = (MonetaryFormat) o; if (!Objects.equals(this.negativeSign, other.negativeSign)) return false; if (!Objects.equals(this.positiveSign, other.positiveSign)) return false; if (!Objects.equals(this.zeroDigit, other.zeroDigit)) return false; if (!Objects.equals(this.decimalMark, other.decimalMark)) return false; if (!Objects.equals(this.minDecimals, other.minDecimals)) return false; if (!Objects.equals(this.decimalGroups, other.decimalGroups)) return false; if (!Objects.equals(this.shift, other.shift)) return false; if (!Objects.equals(this.roundingMode, other.roundingMode)) return false; if (!Arrays.equals(this.codes, other.codes)) return false; if (!Objects.equals(this.codeSeparator, other.codeSeparator)) return false; if (!Objects.equals(this.codePrefixed, other.codePrefixed)) return false; return true; } MonetaryFormat();  MonetaryFormat(boolean useBitcoinSymbol); private  MonetaryFormat(char negativeSign, char positiveSign, char zeroDigit, char decimalMark, int minDecimals,
            List<Integer> decimalGroups, int shift, RoundingMode roundingMode, String[] codes,
            char codeSeparator, boolean codePrefixed); }
MonetaryFormat { @Override public boolean equals(final Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; final MonetaryFormat other = (MonetaryFormat) o; if (!Objects.equals(this.negativeSign, other.negativeSign)) return false; if (!Objects.equals(this.positiveSign, other.positiveSign)) return false; if (!Objects.equals(this.zeroDigit, other.zeroDigit)) return false; if (!Objects.equals(this.decimalMark, other.decimalMark)) return false; if (!Objects.equals(this.minDecimals, other.minDecimals)) return false; if (!Objects.equals(this.decimalGroups, other.decimalGroups)) return false; if (!Objects.equals(this.shift, other.shift)) return false; if (!Objects.equals(this.roundingMode, other.roundingMode)) return false; if (!Arrays.equals(this.codes, other.codes)) return false; if (!Objects.equals(this.codeSeparator, other.codeSeparator)) return false; if (!Objects.equals(this.codePrefixed, other.codePrefixed)) return false; return true; } MonetaryFormat();  MonetaryFormat(boolean useBitcoinSymbol); private  MonetaryFormat(char negativeSign, char positiveSign, char zeroDigit, char decimalMark, int minDecimals,
            List<Integer> decimalGroups, int shift, RoundingMode roundingMode, String[] codes,
            char codeSeparator, boolean codePrefixed); MonetaryFormat negativeSign(char negativeSign); MonetaryFormat positiveSign(char positiveSign); MonetaryFormat digits(char zeroDigit); MonetaryFormat decimalMark(char decimalMark); MonetaryFormat minDecimals(int minDecimals); MonetaryFormat optionalDecimals(int... groups); MonetaryFormat repeatOptionalDecimals(int decimals, int repetitions); MonetaryFormat shift(int shift); MonetaryFormat roundingMode(RoundingMode roundingMode); MonetaryFormat noCode(); MonetaryFormat code(int codeShift, String code); MonetaryFormat codeSeparator(char codeSeparator); MonetaryFormat prefixCode(); MonetaryFormat postfixCode(); MonetaryFormat withLocale(Locale locale); CharSequence format(Monetary monetary); Coin parse(String str); Fiat parseFiat(String currencyCode, String str); String code(); @Override boolean equals(final Object o); @Override int hashCode(); }
MonetaryFormat { @Override public boolean equals(final Object o) { if (o == this) return true; if (o == null || o.getClass() != getClass()) return false; final MonetaryFormat other = (MonetaryFormat) o; if (!Objects.equals(this.negativeSign, other.negativeSign)) return false; if (!Objects.equals(this.positiveSign, other.positiveSign)) return false; if (!Objects.equals(this.zeroDigit, other.zeroDigit)) return false; if (!Objects.equals(this.decimalMark, other.decimalMark)) return false; if (!Objects.equals(this.minDecimals, other.minDecimals)) return false; if (!Objects.equals(this.decimalGroups, other.decimalGroups)) return false; if (!Objects.equals(this.shift, other.shift)) return false; if (!Objects.equals(this.roundingMode, other.roundingMode)) return false; if (!Arrays.equals(this.codes, other.codes)) return false; if (!Objects.equals(this.codeSeparator, other.codeSeparator)) return false; if (!Objects.equals(this.codePrefixed, other.codePrefixed)) return false; return true; } MonetaryFormat();  MonetaryFormat(boolean useBitcoinSymbol); private  MonetaryFormat(char negativeSign, char positiveSign, char zeroDigit, char decimalMark, int minDecimals,
            List<Integer> decimalGroups, int shift, RoundingMode roundingMode, String[] codes,
            char codeSeparator, boolean codePrefixed); MonetaryFormat negativeSign(char negativeSign); MonetaryFormat positiveSign(char positiveSign); MonetaryFormat digits(char zeroDigit); MonetaryFormat decimalMark(char decimalMark); MonetaryFormat minDecimals(int minDecimals); MonetaryFormat optionalDecimals(int... groups); MonetaryFormat repeatOptionalDecimals(int decimals, int repetitions); MonetaryFormat shift(int shift); MonetaryFormat roundingMode(RoundingMode roundingMode); MonetaryFormat noCode(); MonetaryFormat code(int codeShift, String code); MonetaryFormat codeSeparator(char codeSeparator); MonetaryFormat prefixCode(); MonetaryFormat postfixCode(); MonetaryFormat withLocale(Locale locale); CharSequence format(Monetary monetary); Coin parse(String str); Fiat parseFiat(String currencyCode, String str); String code(); @Override boolean equals(final Object o); @Override int hashCode(); static final MonetaryFormat BTC; static final MonetaryFormat MBTC; static final MonetaryFormat UBTC; static final MonetaryFormat FIAT; static final String CODE_BTC; static final String CODE_MBTC; static final String CODE_UBTC; static final String SYMBOL_BTC; static final String SYMBOL_MBTC; static final String SYMBOL_UBTC; static final int MAX_DECIMALS; }