Methods versus definitions

Report a typo

Match the methods to their definitions.

Match the items from left and right columns
reversed()
coerceAtMost()
coerceAtLeast()
coerceIn()
This function checks whether the calling object is greater than a certain minimum object. It returns the current object if it is greater, otherwise it returns the minimum object
This function checks whether the calling object is smaller than the given maximum object. It returns the current object if its smaller, otherwise it returns the maximum object
This function takes the comparator as an argument and returns a comparator with the reversed ordering of the passed comparator.
This function checks whether the calling object is between certain minimum and maximum values. It returns the object if it is in the range, the minimum if the object is less than the minimum, or the maximum.
___

Create a free account to access the full topic