cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/autoscaling/VerticalVmScalingSimple.java
private void validateFunctions(Function<Vm, Double> lowerThresholdFunction, Function<Vm, Double> upperThresholdFunction) {
        Objects.requireNonNull(lowerThresholdFunction);
        Objects.requireNonNull(upperThresholdFunction);
        if(upperThresholdFunction.equals(lowerThresholdFunction)){
            throw new IllegalArgumentException("Lower and Upper utilization threshold functions cannot be equal.");
        }
    }
/**
     * Throws an exception if the under and overload predicates are equal (to make clear
     * that over and underload situations must be defined by different conditions)
     * or if any of them are null.
     *
     * @param lowerThresholdFunction the lower threshold function
     * @param upperThresholdFunction the upper threshold function
     * @throws IllegalArgumentException if the two functions are equal
     * @throws NullPointerException if any of the functions is null
     */
Throws an exception if the under and overload predicates are equal (to make clear
that over and underload situations must be defined by different conditions)
or if any of them are null.

@param lowerThresholdFunction the lower threshold function
@param upperThresholdFunction the upper threshold function
@throws IllegalArgumentException if the two functions are equal
@throws NullPointerException if any of the functions is null
Throws an exception if the under and overload predicates are equal ( to make clear that over and underload situations must be defined by different conditions ) or if any of them are null . @param lowerThresholdFunction the lower threshold function @param upperThresholdFunction the upper threshold function @throws IllegalArgumentException if the two functions are equal @throws NullPointerException if any of the functions is null
private void validateFunctions(Function<Vm, Double> lowerThresholdFunction, Function<Vm, Double> upperThresholdFunction) {
        Objects.requireNonNull(lowerThresholdFunction);
        Objects.requireNonNull(upperThresholdFunction);
        if(upperThresholdFunction.equals(lowerThresholdFunction)){
            throw new IllegalArgumentException("Lower and Upper utilization threshold functions cannot be equal.");
        }
    }
private void validateFunctions ( Function < Vm , Double > lowerThresholdFunction , Function < Vm , Double > upperThresholdFunction ) { Objects . requireNonNull ( lowerThresholdFunction ) ; Objects . requireNonNull ( upperThresholdFunction ) ; if ( upperThresholdFunction . equals ( lowerThresholdFunction ) ) { throw new IllegalArgumentException ( "Lower and Upper utilization threshold functions cannot be equal." ) ; } }
Throws an exception if the under and overload predicates are equal (to make clear
 that over and underload situations must be defined by different conditions)
 or if any of them are null.
Throws an exception if the under and overload predicates are equal ( to make clear that over and underload situations must be defined by different conditions ) or if any of them are null .