cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudsimplus/autoscaling/HorizontalVmScalingSimple.java
private void validateFunctions(Predicate<Vm> underloadPredicate, Predicate<Vm> overloadPredicate) {
        Objects.requireNonNull(underloadPredicate);
        Objects.requireNonNull(overloadPredicate);
        if(overloadPredicate.equals(underloadPredicate)){
            throw new IllegalArgumentException("Under and overload predicates 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 underloadPredicate the underload predicate
     * @param overloadPredicate the overload predicate
     * @throws IllegalArgumentException if the two predicates are equal
     * @throws NullPointerException if any of the predicates 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 underloadPredicate the underload predicate
@param overloadPredicate the overload predicate
@throws IllegalArgumentException if the two predicates are equal
@throws NullPointerException if any of the predicates 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 underloadPredicate the underload predicate @param overloadPredicate the overload predicate @throws IllegalArgumentException if the two predicates are equal @throws NullPointerException if any of the predicates is null
private void validateFunctions(Predicate<Vm> underloadPredicate, Predicate<Vm> overloadPredicate) {
        Objects.requireNonNull(underloadPredicate);
        Objects.requireNonNull(overloadPredicate);
        if(overloadPredicate.equals(underloadPredicate)){
            throw new IllegalArgumentException("Under and overload predicates cannot be equal.");
        }
    }
private void validateFunctions ( Predicate < Vm > underloadPredicate , Predicate < Vm > overloadPredicate ) { Objects . requireNonNull ( underloadPredicate ) ; Objects . requireNonNull ( overloadPredicate ) ; if ( overloadPredicate . equals ( underloadPredicate ) ) { throw new IllegalArgumentException ( "Under and overload predicates 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 .