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

com.barchart.ondemand.api.responses.IncomeStatements Maven / Gradle / Ivy

The newest version!
package com.barchart.ondemand.api.responses;

import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonProperty;

public class IncomeStatements extends ResponseBase {

	@JsonProperty("results")
	private final List results = new ArrayList();

	public Collection all() {
		return Collections.unmodifiableCollection(results);
	}

	public IncomeStatement bySymbol(final String symbol) {
		if (symbol == null) {
			return null;
		}

		for (IncomeStatement p : all()) {
			if (p.getSymbol() != null && p.getSymbol().equalsIgnoreCase(symbol)) {
				return p;
			}
		}

		return null;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy