All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.kroxylicious.proxy.internal.util.Assertions Maven / Gradle / Ivy

/*
 * Copyright Kroxylicious Authors.
 *
 * Licensed under the Apache Software License version 2.0, available at http://www.apache.org/licenses/LICENSE-2.0
 */
package io.kroxylicious.proxy.internal.util;

public class Assertions {
    private Assertions() {
    }

    public static long requireStrictlyPositive(long num, String what) {
        if (num <= 0) {
            throw new IllegalArgumentException(what + " must be > 0");
        }
        return num;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy