io.rtr.alchemy.dto.requests.AllocationRequests Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alchemy-api Show documentation
Show all versions of alchemy-api Show documentation
Representations for Alchemy Service
package io.rtr.alchemy.dto.requests;
import java.util.ArrayList;
import java.util.Collections;
/** We need this class to deal with Jackson List serialization issues due to type-erasure */
public class AllocationRequests extends ArrayList {
private static final long serialVersionUID = 3619787346944661924L;
public static AllocationRequests of(AllocationRequest... requests) {
final AllocationRequests result = new AllocationRequests();
Collections.addAll(result, requests);
return result;
}
}