boolean isAddressWithinAllocatedRange(final Integer address) throws IllegalArgumentException {
        if (address == null)
            return true;

        if (!MeshAddress.isValidUnicastAddress(address)) {
            throw new IllegalArgumentException("Unicast address must range from 0x0001 - 0x7FFF");
        }

        for (AllocatedUnicastRange range : allocatedUnicastRanges) {
            if (address >= range.getLowAddress() && address <= range.getHighAddress())
                return true;
        }
        return false;
    }
Checks if a given Unicast Address is within an allocated unicast address range

@param address Unicast Address
@return true if it is within a range or false otherwise
@throws IllegalArgumentException if address is invalid or out of range
mesh/src/main/java/no/nordicsemi/android/mesh/Provisioner.java