![JAR search and dependency download from the Maven repository](/logo.png)
com.sportdataapi.data.Odds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sportdata-api-client Show documentation
Show all versions of sportdata-api-client Show documentation
A simple sportdataapi.com client.
The newest version!
/**
*
*/
package com.sportdataapi.data;
import java.util.Collection;
import java.util.HashMap;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
/**
* Odds object for Sportdataapi.com.
* @author ralph
*
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class Odds extends HashMap{
private static final long serialVersionUID = 1L;
/**
* Constructor.
*/
public Odds() {
}
/**
* Returns the markets.
* @return the markets
*/
public Collection getMarkets() {
return keySet();
}
/**
* Returns a single market odds info
* @param market the market name
* @return the odds for this market
*/
public MarketOdds getMarket(String market) {
return get(market);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy