I have created a class that returns a Hashmap of items:
public class PaymentMap implements Serializable, Map<String, PaymentItem>
but as I have worked with it I have made my life more difficult than it needs to be. The class just needs to be an ArrayList. So I defined the class as :
public class Payments implements Serializable, Collection<PaymentItem>{
This works. Sorry did not do enough searching before posting.
but I get the error:
The type ArrayList can not be a superinterface of Payments, a superinterface must be an interface.
I have done some searching but can't figure out how to define the class statements.