changed byteSet from Collection to List so as to iterate by index

This commit is contained in:
Dave
2015-07-05 18:57:25 +02:00
parent 81f9361eda
commit 06fd5e9845
3 changed files with 15 additions and 14 deletions

View File

@@ -19,6 +19,7 @@ package nodash.core;
import java.security.PublicKey;
import java.util.Collection;
import java.util.List;
import nodash.exceptions.NoAdapterException;
import nodash.exceptions.NoSessionExpiredException;
@@ -148,7 +149,7 @@ public interface NoAdapter {
* should return an empty collection, not a null object.
* @throws NoAdapterException
*/
public Collection<NoByteSet> pollNoByteSets(PublicKey address) throws NoAdapterException;
public List<NoByteSet> pollNoByteSets(PublicKey address) throws NoAdapterException;
/**
* Adds a single NoByteSet to the addressed PublicKey address.
@@ -167,6 +168,6 @@ public interface NoAdapter {
* @throws NoAdapterException - if the adapter is unable to add the list of NoByteSet objects to
* the pool.
*/
public void addNoByteSets(Collection<NoByteSet> byteSets, PublicKey address)
public void addNoByteSets(List<NoByteSet> byteSets, PublicKey address)
throws NoAdapterException;
}