All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.coinbase.api.deserializer.OrdersLifter Maven / Gradle / Ivy

The newest version!
package com.coinbase.api.deserializer;

import java.util.ArrayList;
import java.util.List;

import com.coinbase.api.entity.Order;
import com.coinbase.api.entity.OrderNode;
import com.fasterxml.jackson.databind.util.StdConverter;

public class OrdersLifter extends StdConverter, List> {

    public List convert(List nodes) {
	ArrayList result = new ArrayList();
	
	for (OrderNode node : nodes) {
	    result.add(node.getOrder());
	}
	
	return result;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy