@Test public void testPrefixLabel() { assertEquals(String.format("%s%s %s", expectedOutput, "format", btcFixedFormat.pattern()), btcFixedFormat.toString()); }
private static String prefixLabel(int scale) { switch (scale) { case COIN_SCALE: return "Coin-"; case 1: return "Decicoin-"; case 2: return "Centicoin-"; case MILLICOIN_SCALE: return "Millicoin-"; case MICROCOIN_SCALE: return "Microcoin-"; case -1: return "Dekacoin-"; case -2: return "Hectocoin-"; case -3: return "Kilocoin-"; case -6: return "Megacoin-"; default: return "Fixed (" + String.valueOf(scale) + ") "; } }
BtcFixedFormat extends BtcFormat { private static String prefixLabel(int scale) { switch (scale) { case COIN_SCALE: return "Coin-"; case 1: return "Decicoin-"; case 2: return "Centicoin-"; case MILLICOIN_SCALE: return "Millicoin-"; case MICROCOIN_SCALE: return "Microcoin-"; case -1: return "Dekacoin-"; case -2: return "Hectocoin-"; case -3: return "Kilocoin-"; case -6: return "Megacoin-"; default: return "Fixed (" + String.valueOf(scale) + ") "; } } }
BtcFixedFormat extends BtcFormat { private static String prefixLabel(int scale) { switch (scale) { case COIN_SCALE: return "Coin-"; case 1: return "Decicoin-"; case 2: return "Centicoin-"; case MILLICOIN_SCALE: return "Millicoin-"; case MICROCOIN_SCALE: return "Microcoin-"; case -1: return "Dekacoin-"; case -2: return "Hectocoin-"; case -3: return "Kilocoin-"; case -6: return "Megacoin-"; default: return "Fixed (" + String.valueOf(scale) + ") "; } } protected  BtcFixedFormat(
        Locale locale, int scale, int minDecimals, List<Integer> groups
    ); }
BtcFixedFormat extends BtcFormat { private static String prefixLabel(int scale) { switch (scale) { case COIN_SCALE: return "Coin-"; case 1: return "Decicoin-"; case 2: return "Centicoin-"; case MILLICOIN_SCALE: return "Millicoin-"; case MICROCOIN_SCALE: return "Microcoin-"; case -1: return "Dekacoin-"; case -2: return "Hectocoin-"; case -3: return "Kilocoin-"; case -6: return "Megacoin-"; default: return "Fixed (" + String.valueOf(scale) + ") "; } } protected  BtcFixedFormat(
        Locale locale, int scale, int minDecimals, List<Integer> groups
    ); @Override int scale(); String code(); String symbol(); int[] fractionPlaceGroups(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
BtcFixedFormat extends BtcFormat { private static String prefixLabel(int scale) { switch (scale) { case COIN_SCALE: return "Coin-"; case 1: return "Decicoin-"; case 2: return "Centicoin-"; case MILLICOIN_SCALE: return "Millicoin-"; case MICROCOIN_SCALE: return "Microcoin-"; case -1: return "Dekacoin-"; case -2: return "Hectocoin-"; case -3: return "Kilocoin-"; case -6: return "Megacoin-"; default: return "Fixed (" + String.valueOf(scale) + ") "; } } protected  BtcFixedFormat(
        Locale locale, int scale, int minDecimals, List<Integer> groups
    ); @Override int scale(); String code(); String symbol(); int[] fractionPlaceGroups(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static final int[] REPEATING_PLACES; static final int[] REPEATING_DOUBLETS; static final int[] REPEATING_TRIPLETS; }