public class SportFilterRule extends GeneralDataFilterRule implements jayeson.model.IMatchFilterRule
Constructor and Description |
---|
SportFilterRule() |
SportFilterRule(java.util.List<SportType> sportTypes) |
Modifier and Type | Method and Description |
---|---|
int |
buildHashCode(int initialHashCode) |
int |
compareTo(jayeson.model.IDataFilterRule o)
return:
-1: is not equal
0: is equal.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<SportType> |
getSportTypes() |
boolean |
isComplied(IBetMatch match)
Determine if a record complies with the rule.
|
void |
setSportTypes(java.util.List<SportType> sportTypes) |
clone, getRuleType, hashCode, isNegated, setNegated
public SportFilterRule()
public SportFilterRule(java.util.List<SportType> sportTypes)
public boolean isComplied(IBetMatch match)
jayeson.model.IDataFilterRule
isComplied
in interface jayeson.model.IDataFilterRule<IBetMatch>
match
- data to execute the filter againstpublic int buildHashCode(int initialHashCode)
buildHashCode
in class GeneralDataFilterRule
public int compareTo(jayeson.model.IDataFilterRule o)
GeneralDataFilterRule
return: -1: is not equal 0: is equal.
compareTo
in interface jayeson.model.IDataFilterRule<IBetMatch>
compareTo
in class GeneralDataFilterRule
public java.util.List<SportType> getSportTypes()
public void setSportTypes(java.util.List<SportType> sportTypes)
public boolean equals(java.lang.Object obj)
equals
in class GeneralDataFilterRule