documentation

This commit is contained in:
pinpong
2017-02-12 23:36:47 +01:00
parent 11b54ec442
commit 878f5e9f95
38 changed files with 57 additions and 42 deletions
+2 -1
View File
@@ -20,7 +20,8 @@ import java.util.Properties;
import java.util.concurrent.TimeUnit;
/**
* Created by Adrian on 15.01.2017.
* This class provides access to the Iota core API
* @author Adrian
*/
public class IotaAPICore {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 09.12.2016.
* @author Adrian
*/
public class ArgumentException extends BaseException {
+1 -1
View File
@@ -5,7 +5,7 @@ import java.util.Arrays;
import java.util.Collection;
/**
* Created by Adrian on 09.12.2016.
* @author Adrian
*/
public class BaseException extends Exception {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 22.01.2017.
* @author Adrian
*/
public class BroadcastAndStoreException extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by pinpong on 05.02.17.
* @author Adrian
*/
public class InvalidAddressException extends BaseException {
public InvalidAddressException() {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 27.12.2016.
* @author Adrian
*/
public class InvalidBundleException extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by pinpong on 02.02.17.
* @author pinpong
*/
public class InvalidSecurityLevelException extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 27.12.2016.
* @author Adrian
*/
public class InvalidSignatureException extends BaseException {
public InvalidSignatureException() {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by pinpong on 05.02.17.
* @author pinpong
*/
public class InvalidTransferException extends BaseException {
public InvalidTransferException() {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 04.02.2017.
* @author Adrian
*/
public class InvalidTrytesException extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 22.01.2017.
* @author Adrian
*/
public class NoInclusionStatesExcpection extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 22.01.2017.
* @author Adrian
*/
public class NoNodeInfoException extends BaseException {
@@ -1,7 +1,7 @@
package jota.error;
/**
* Created by Adrian on 09.12.2016.
* @author Adrian
*/
public class NotEnoughBalanceException extends BaseException {
+3 -2
View File
@@ -10,8 +10,9 @@ import java.util.List;
/**
* Created by pinpong on 09.12.16.
*/
* This class represents a Bundle, a set of transactions
* @author pinpong
**/
public class Bundle implements Comparable<Bundle> {
public static String EMPTY_HASH = "999999999999999999999999999999999999999999999999999999999999999999999999999999999";
+3 -2
View File
@@ -4,8 +4,9 @@ import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
/**
* Created by Adrian on 09.12.2016.
*/
* This class represents an Input
* @author Adrian
**/
public class Input {
private String address;
private long balance;
+3 -2
View File
@@ -5,8 +5,9 @@ import com.google.gson.Gson;
import java.util.List;
/**
* Created by Adrian on 09.12.2016.
*/
* This class represents an Inputs
* @author Adrian
**/
public class Inputs {
private List<Input> inputsList;
private long totalBalance;
+3 -2
View File
@@ -1,8 +1,9 @@
package jota.model;
/**
* Created by pinpong on 02.12.16.
*/
* This class represents an Neighbor
* @author pinpong
**/
public class Neighbor {
private String address;
+3 -2
View File
@@ -4,8 +4,9 @@ import java.util.ArrayList;
import java.util.List;
/**
* Created by Adrian on 27.12.2016.
*/
* This class represents an Signature
* @author Adrian
**/
public class Signature {
String address;
+2 -1
View File
@@ -12,7 +12,8 @@ import org.slf4j.LoggerFactory;
import java.util.Arrays;
/**
* Created by pinpong on 02.12.16.
* This class represents an iota transaction
* @author pinpong
*/
public class Transaction {
private static final Logger log = LoggerFactory.getLogger(Transaction.class);
+2 -1
View File
@@ -3,7 +3,8 @@ package jota.model;
import com.google.gson.Gson;
/**
* Created by pinpong on 02.12.16.
* This class represents a Transfer
* @author pinpong
*/
public class Transfer {
+1 -1
View File
@@ -1,7 +1,7 @@
package jota.pow;
/**
* Created by Adrian on 07.01.2017.
* @author Adrian
*/
public interface ICurl {
ICurl absorb(final int[] trits, int offset, int length);
+2 -1
View File
@@ -4,7 +4,8 @@ import jota.error.InvalidAddressException;
import jota.pow.JCurl;
/**
* Created by pinpong on 02.12.16.
* This class defines utility methods to add/remove the checksum to/from an address
* @author pinpong
*/
public class Checksum {
+2 -1
View File
@@ -1,7 +1,8 @@
package jota.utils;
/**
* Created by pinpong on 02.12.16.
* This class defines the global constants
* @author pinpong
*/
public class Constants {
+2 -1
View File
@@ -8,7 +8,8 @@ import org.apache.commons.lang3.math.NumberUtils;
import java.util.List;
/**
* Created by pinpong on 02.12.16.
* This class provides methods to validate the parameters of different iota API methods
* @author pinpong
*/
public class InputValidator {
@@ -3,7 +3,8 @@ package jota.utils;
import java.text.DecimalFormat;
/**
* Created by Sascha on 30.11.16.
* This class provides methods to convert Iota to different units
* @author sascha
*/
public class IotaUnitConverter {
+1
View File
@@ -2,6 +2,7 @@ package jota.utils;
/**
* Table of IOTA units based off of the standard system of Units
* @author pinpong
**/
public enum IotaUnits {
+1 -1
View File
@@ -7,7 +7,7 @@ import jota.pow.JCurl;
import java.util.Arrays;
/**
* Created by pinpong on 02.02.17.
* @author pinpong
*/
public class Multisig {
@@ -5,7 +5,7 @@ import java.util.concurrent.ThreadFactory;
import java.util.concurrent.atomic.AtomicInteger;
/**
* Created by Adrian on 15.01.2017.
* @author Adrian
*/
public class NamedThreadFactory implements ThreadFactory {
private final String baseName;
+1 -1
View File
@@ -8,7 +8,7 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
/**
* Created by Adrian on 15.01.2017.
* @author Adrian
*/
public class Parallel {
private static final int NUM_CORES = Runtime.getRuntime().availableProcessors();
@@ -3,7 +3,8 @@ package jota.utils;
import java.security.SecureRandom;
/**
* Created by pinpong on 13.12.16.
* This class allows to create a secure random generated seed
* @author pinpong
*/
public class SeedRandomGenerator {
+1 -1
View File
@@ -1,7 +1,7 @@
package jota.utils;
/**
* Created by Adrian on 15.01.2017.
* @author adrian
*/
public class StopWatch {
private long startTime = 0;
@@ -1,7 +1,8 @@
package jota.utils;
/**
* Created by pinpong on 01.12.16.
* This class allows to convert between ASCII and tryte encoded strings
* @author pinpong
*/
public class TrytesConverter {
+1 -1
View File
@@ -7,7 +7,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by pinpong on 02.12.16.
* @author pinpong
*/
public class ChecksumTest {
+1 -1
View File
@@ -11,7 +11,7 @@ import java.util.List;
import static org.junit.Assert.assertEquals;
/**
* Created by pinpong on 02.12.16.
* @author pinpong
*/
public class InputValidatorTest {
+1 -1
View File
@@ -9,7 +9,7 @@ import org.junit.Test;
import static org.junit.Assert.assertThat;
/**
* Created by Adrian on 15.01.2017.
* @author Adrian
*/
public class IotaCoreApiTest {
@@ -7,7 +7,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by pinpong on 30.11.16.
* @author pinpong
*/
public class IotaUnitConverterTest {
@@ -8,7 +8,7 @@ import org.junit.Test;
import static org.junit.Assert.assertEquals;
/**
* Created by pinpong on 13.12.16.
* @author pinpong
*/
public class SeedRandomGeneratorTest {
+1 -1
View File
@@ -8,7 +8,7 @@ import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
/**
* Created by pinpong on 01.12.16.
* @author pinpong
*/
public class TrytesConverterTest {