@Test public void testGetAmountAsString() throws ISOException { assertThat(iSOAmount.getAmountAsString(), is("8402000000001000")); }
public String getAmountAsString() throws ISOException { StringBuilder sb = new StringBuilder(16); sb.append (ISOUtil.zeropad (Integer.toString (currencyCode),3)); sb.append (Integer.toString(amount.scale() % 10)); sb.append (ISOUtil.zeropad (amount.unscaledValue().toString(), 12)); return sb.toString(); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public String getAmountAsString() throws ISOException { StringBuilder sb = new StringBuilder(16); sb.append (ISOUtil.zeropad (Integer.toString (currencyCode),3)); sb.append (Integer.toString(amount.scale() % 10)); sb.append (ISOUtil.zeropad (amount.unscaledValue().toString(), 12)); return sb.toString(); } }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public String getAmountAsString() throws ISOException { StringBuilder sb = new StringBuilder(16); sb.append (ISOUtil.zeropad (Integer.toString (currencyCode),3)); sb.append (Integer.toString(amount.scale() % 10)); sb.append (ISOUtil.zeropad (amount.unscaledValue().toString(), 12)); return sb.toString(); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public String getAmountAsString() throws ISOException { StringBuilder sb = new StringBuilder(16); sb.append (ISOUtil.zeropad (Integer.toString (currencyCode),3)); sb.append (Integer.toString(amount.scale() % 10)); sb.append (ISOUtil.zeropad (amount.unscaledValue().toString(), 12)); return sb.toString(); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); Object getKey(); Object getValue(); void setValue(Object obj); void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); BigDecimal getAmount(); int getScale(); String getScaleAsString(); int getCurrencyCode(); String getCurrencyCodeAsString(); String getAmountAsLegacyString(); String getAmountAsString(); byte[] pack(); int unpack(byte[] b); void unpack(InputStream in); void dump(PrintStream p, String indent); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); }
ISOAmount extends ISOComponent implements Cloneable, Externalizable { public String getAmountAsString() throws ISOException { StringBuilder sb = new StringBuilder(16); sb.append (ISOUtil.zeropad (Integer.toString (currencyCode),3)); sb.append (Integer.toString(amount.scale() % 10)); sb.append (ISOUtil.zeropad (amount.unscaledValue().toString(), 12)); return sb.toString(); } ISOAmount();  ISOAmount(int fieldNumber);  ISOAmount(int fieldNumber, int currencyCode, BigDecimal amount); Object getKey(); Object getValue(); void setValue(Object obj); void setFieldNumber(int fieldNumber); @Override int getFieldNumber(); BigDecimal getAmount(); int getScale(); String getScaleAsString(); int getCurrencyCode(); String getCurrencyCodeAsString(); String getAmountAsLegacyString(); String getAmountAsString(); byte[] pack(); int unpack(byte[] b); void unpack(InputStream in); void dump(PrintStream p, String indent); void writeExternal(ObjectOutput out); void readExternal(ObjectInput in); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }