Package io.bytestreams.codec.core.util
Class Preconditions
java.lang.Object
io.bytestreams.codec.core.util.Preconditions
Utility methods for checking preconditions.
-
Method Summary
-
Method Details
-
check
Validates that a condition is true.- Parameters:
condition- the condition to checkerrorTemplate- the error message templateargs- the arguments for the error message template- Throws:
IllegalArgumentException- if the condition is false
-