@pinpong fixed getNewAddress (#4)

* implemented toTrytes and toStrings

* added TrytesConverterTest

* WIP

* added checksum calculation, pls review

* updated checksum

* updated tests

* fixed getnewaddress
This commit is contained in:
Gianluigi Davassi
2016-12-02 23:57:44 +01:00
committed by GitHub
parent f8111a0997
commit f697dac422
21 changed files with 511 additions and 242 deletions
+50
View File
@@ -0,0 +1,50 @@
package jota.model;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Created by pinpong on 02.12.16.
*/
public class Transfer {
private String timestamp;
private String address;
private String hash;
private Integer persistence;
private long value;
public Transfer(String timestamp, String address, String hash, Integer persistence, long value) {
this.timestamp = timestamp;
this.address = address;
this.hash = hash;
this.persistence = persistence;
this.value = value;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
}
public String getAddress() {
return address;
}
public String getHash() {
return hash;
}
public Integer getPersistence() {
return persistence;
}
public String getTimestamp() {
return timestamp;
}
public long getValue() {
return value;
}
}