HealthDataResolver.Filter
overview package class tree deprecated index com samsung android sdk healthdata class healthdataresolver filter java lang object com samsung android sdk healthdata healthdataresolver filter all implemented interfaces parcelable enclosing class healthdataresolver public abstract static class healthdataresolver filter extends object implements parcelable this class creates a filter to make the request range clear it can be used with the following requests healthdataresolver readrequest healthdataresolver updaterequest healthdataresolver deleterequest healthdataresolver aggregaterequest filter examples the multiple filters can be combined with and and or if there are 3 filters filter filter1 = filter eq "property1", "aaa" ; filter filter2 = filter eq "property2", "bbb" ; filter filter3 = filter greaterthanequals "property3",100 ; case 1 and the filter of the figure above can be created as // good example filter goodfilterex = filter and filter1, filter2, filter3 ; // bad example filter badfilterex = filter and filter and filter1, filter2 , filter3 ; case 2 or the filter of the figure above can be created as // good example filter goodfilterex = filter in "property1", {"aaa", "bbb", "ccc"} ; // bad example filter badfilterex = filter or filter eq "property1", "aaa" , filter eq "property2", "bbb" , filter eq "property1", "ccc" ; case 3 and , or the filter of the figure above can be created as filter filter = filter and filter or filter1, filter2 , filter3 ; since 1 0 0 method summary all methods static methods concrete methods modifier and type method and description static healthdataresolver filter and healthdataresolver filter filter, healthdataresolver filter additionalfilters returns a logical expression filter combined with the and operator static <t> healthdataresolver filter eq string property, t value returns a filter which checks if a given property of health data is equal to a value static <t extends comparable<t>>healthdataresolver filter greaterthan string property, t value returns a filter which checks if a value of a given property is greater than a given value static <t extends comparable<t>>healthdataresolver filter greaterthanequals string property, t value returns a filter which checks if the value of a given property is greater than or equal to a given value static <t> healthdataresolver filter in string property, t[] values returns a filter to check if given values for a given property are included in health data static <t extends comparable<t>>healthdataresolver filter lessthan string property, t value returns a filter which checks if a value of a given property is less than a given value static <t extends comparable<t>>healthdataresolver filter lessthanequals string property, t value returns a filter which checks if a value of a given property is less than or equal to a given value static healthdataresolver filter not healthdataresolver filter filter returns a negation filter of a given filter static healthdataresolver filter or healthdataresolver filter filter, healthdataresolver filter additionalfilters returns a logical expression filter combined with the or operator method detail and public static healthdataresolver filter and healthdataresolver filter filter, healthdataresolver filter additionalfilters returns a logical expression filter combined with the and operator parameters filter - the filter object to combine additionalfilters - the additional filter objects to combine returns the filter object that combines filters with and throws illegalargumentexception - if filter contains invalid instance type or null since 1 0 0 or public static healthdataresolver filter or healthdataresolver filter filter, healthdataresolver filter additionalfilters returns a logical expression filter combined with the or operator parameters filter - the filter object to combine additionalfilters - the additional filter objects to combine returns the filter object that combines filters with or throws illegalargumentexception - if filter contains invalid instance type or null since 1 0 0 not public static healthdataresolver filter not healthdataresolver filter filter returns a negation filter of a given filter parameters filter - the filter object in negation returns the negation filter object of the filter throws illegalargumentexception - if filter contains invalid instance type or null since 1 0 0 eq public static <t> healthdataresolver filter eq string property, t value returns a filter which checks if a given property of health data is equal to a value parameters property - the property name of health data value - the given property's value to check if it is equal the value can be a number, string, or null returns the filter object that checks if the given property of health data is equal to the value throws illegalargumentexception - if the property is null or if the value is not a number, string, or null since 1 0 0 lessthan public static <t extends comparable<t>> healthdataresolver filter lessthan string property, t value returns a filter which checks if a value of a given property is less than a given value parameters property - the property name of health data value - the specified value as number returns the filter object that checks throws illegalargumentexception - if the property or value is null or the value is not number since 1 0 0 lessthanequals public static <t extends comparable<t>> healthdataresolver filter lessthanequals string property, t value returns a filter which checks if a value of a given property is less than or equal to a given value parameters property - the property name of health data value - the specified value as number returns the filter object that throws illegalargumentexception - if the property or value is null or the value is not number object since 1 0 0 greaterthan public static <t extends comparable<t>> healthdataresolver filter greaterthan string property, t value returns a filter which checks if a value of a given property is greater than a given value parameters property - the property name of health data value - the specified value as number returns the filter object that throws illegalargumentexception - if the property or value is null or the value is not number object since 1 0 0 greaterthanequals public static <t extends comparable<t>> healthdataresolver filter greaterthanequals string property, t value returns a filter which checks if the value of a given property is greater than or equal to a given value parameters property - the property name of health data value - the specified value as number returns the filter object that throws illegalargumentexception - if the property or value is null or the value is not number object since 1 0 0 in public static <t> healthdataresolver filter in string property, t[] values returns a filter to check if given values for a given property are included in health data parameters property - the property name of health data values - the list of string or number typed values returns filter the filter object that throws illegalargumentexception - thrown if either of the following conditions has occurred the property is null or empty string values is null or empty list values has a different type with string or number since 1 0 0