public static Boolean isAddressInAnyRanges(List<? extends AddressRange> ranges, int address) {
        for (AddressRange range : ranges) {
            if (range.isInRange(address)) {
                return true;
            }
        }
        return false;
    }
Checks a given address is within any of the address range in a given list of address ranges.

@param ranges  List of ranges.
@param address address to be verified.
@return true if the address is in range or false otherwise.
mesh/src/main/java/no/nordicsemi/android/mesh/AddressRange.java