Class SearchParameterValueSupport
- java.lang.Object
-
- org.linuxforhealth.fhir.persistence.index.SearchParameterValueSupport
-
public class SearchParameterValueSupport extends java.lang.Object
Collection of support methods related to SearchParameterValue objects
-
-
Constructor Summary
Constructors Constructor Description SearchParameterValueSupport()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
compare(DateParameter left, DateParameter right)
Comparator function for comparing twoDateParameter
valuesstatic int
compare(LocationParameter left, LocationParameter right)
Comparator function for comparing twoLocationParameter
valuesstatic int
compare(NumberParameter left, NumberParameter right)
Comparator function for comparing twoNumberParameter
valuesstatic int
compare(ProfileParameter left, ProfileParameter right)
Comparator function for comparing twoProfileParameter
valuesstatic int
compare(QuantityParameter left, QuantityParameter right)
Comparator function for comparing twoQuantityParameter
valuesstatic int
compare(ReferenceParameter left, ReferenceParameter right)
Comparator function for comparing twoReferenceParameter
valuesstatic int
compare(SecurityParameter left, SecurityParameter right)
Comparator function for comparing twoSecurityParameter
valuesstatic int
compare(StringParameter left, StringParameter right)
Comparator function for comparing twoStringParameter
valuesstatic int
compare(TagParameter left, TagParameter right)
Comparator function for comparing twoTagParameter
valuesstatic int
compare(TokenParameter left, TokenParameter right)
Comparator function for comparing twoTokenParameter
valuesstatic int
compareSearchParameterValue(SearchParameterValue left, SearchParameterValue right)
Compare the SearchParameterValue elements, taking into account any null fields each may havestatic int
compareValue(java.lang.Boolean left, java.lang.Boolean right)
Compare the two Boolean values, taking into account nullsstatic int
compareValue(java.lang.Double left, java.lang.Double right)
Compare the two Double values, taking into account nullsstatic int
compareValue(java.lang.Integer left, java.lang.Integer right)
Compare the two Integer values, taking into account nullsstatic int
compareValue(java.lang.String left, java.lang.String right)
Compare the two String values taking into account nullsstatic int
compareValue(java.math.BigDecimal left, java.math.BigDecimal right)
Compare the two BigDecimal values, taking into account nullsstatic int
compareValue(java.time.Instant left, java.time.Instant right)
Compare the two Instant values, taking into account nulls
-
-
-
Method Detail
-
compareValue
public static int compareValue(java.lang.Integer left, java.lang.Integer right)
Compare the two Integer values, taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareValue
public static int compareValue(java.lang.Boolean left, java.lang.Boolean right)
Compare the two Boolean values, taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareValue
public static int compareValue(java.time.Instant left, java.time.Instant right)
Compare the two Instant values, taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareValue
public static int compareValue(java.math.BigDecimal left, java.math.BigDecimal right)
Compare the two BigDecimal values, taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareValue
public static int compareValue(java.lang.Double left, java.lang.Double right)
Compare the two Double values, taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareValue
public static int compareValue(java.lang.String left, java.lang.String right)
Compare the two String values taking into account nulls- Parameters:
left
-right
-- Returns:
-
compareSearchParameterValue
public static int compareSearchParameterValue(SearchParameterValue left, SearchParameterValue right)
Compare the SearchParameterValue elements, taking into account any null fields each may have- Parameters:
left
- not nullright
- not null- Returns:
-
compare
public static int compare(DateParameter left, DateParameter right)
Comparator function for comparing twoDateParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(LocationParameter left, LocationParameter right)
Comparator function for comparing twoLocationParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(NumberParameter left, NumberParameter right)
Comparator function for comparing twoNumberParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(ProfileParameter left, ProfileParameter right)
Comparator function for comparing twoProfileParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(QuantityParameter left, QuantityParameter right)
Comparator function for comparing twoQuantityParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(ReferenceParameter left, ReferenceParameter right)
Comparator function for comparing twoReferenceParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(SecurityParameter left, SecurityParameter right)
Comparator function for comparing twoSecurityParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(StringParameter left, StringParameter right)
Comparator function for comparing twoStringParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(TagParameter left, TagParameter right)
Comparator function for comparing twoTagParameter
values- Parameters:
left
-right
-- Returns:
-
compare
public static int compare(TokenParameter left, TokenParameter right)
Comparator function for comparing twoTokenParameter
values- Parameters:
left
-right
-- Returns:
-
-