Package com.sportdataapi.data
Class Odds
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<java.lang.String,MarketOdds>
com.sportdataapi.data.Odds
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,java.util.Map<java.lang.String,MarketOdds>
public class Odds extends java.util.HashMap<java.lang.String,MarketOdds>
Odds object for Sportdataapi.com.
- Author:
- ralph
- See Also:
- Serialized Form
-
Nested Class Summary
-
Constructor Summary
Constructors Constructor Description Odds()
Constructor. -
Method Summary
Modifier and Type Method Description MarketOdds
getMarket(java.lang.String market)
Returns a single market odds infojava.util.Collection<java.lang.String>
getMarkets()
Returns the markets.Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
Odds
public Odds()Constructor.
-
-
Method Details
-
getMarkets
public java.util.Collection<java.lang.String> getMarkets()Returns the markets.- Returns:
- the markets
-
getMarket
Returns a single market odds info- Parameters:
market
- the market name- Returns:
- the odds for this market
-