public class BetValue extends Object implements Serializable
Constructor and Description |
---|
BetValue(BetTypeKey key,
LocalizedString name,
String type)
Initializes a new instance of the
BetValue class. |
Modifier and Type | Method and Description |
---|---|
void |
addOutcome(BetOutcome outcome)
Add a passed outcome to the outcome collection.
|
void |
deleteOutcome(BetOutcome outcome)
Removes the passed outcome from the outcome collection.
|
BetTypeKey |
getKey()
Get key.
|
LocalizedString |
getName()
Get name.
|
Map<String,BetOutcome> |
getOutcomes()
Get the outcomes
|
String |
toString() |
public BetValue(BetTypeKey key, LocalizedString name, String type)
BetValue
class.key
- The corresponding keyname
- Localized bet type name.type
- Odds type name.public void addOutcome(BetOutcome outcome)
outcome
- The outcome to be addedpublic void deleteOutcome(BetOutcome outcome)
outcome
- The outcome to be removed.public BetTypeKey getKey()
public LocalizedString getName()
public Map<String,BetOutcome> getOutcomes()
Copyright © 2013–2023. All rights reserved.