Uses of Class
org.tquadrat.foundation.exception.NullArgumentException
Packages that use NullArgumentException
Package
Description
A collection of
Exceptions
that are defined for the Foundation library set.
Some general language extensions provided by the Foundation
Library.
-
Uses of NullArgumentException in org.tquadrat.foundation.exception
Subclasses of NullArgumentException in org.tquadrat.foundation.exceptionModifier and TypeClassDescriptionfinal classThis is a specialized implementation for theIllegalArgumentExceptionthat should be used instead of the latter in cases where a blank String is provided as an illegal argument value.final classThis is a specialized implementation for theIllegalArgumentExceptionthat should be used instead of the latter in cases where an empty String, array orCollectionargument is provided as an illegal argument value. -
Uses of NullArgumentException in org.tquadrat.foundation.lang
Methods in org.tquadrat.foundation.lang that throw NullArgumentExceptionModifier and TypeMethodDescriptionstatic final <T> intObjects.compare(T object, T other, Comparator<? super T> comparator) Returns 0 if the arguments are identical andcomparator.compare(a, b)otherwise.static final <T> TApplies the given validation on the given value, and if that fails, anValidationExceptionwith the specified message is thrown.static final <T> TObjects.requireNonNull(T obj) static final <T> TObjects.requireNonNull(T obj, String message) Checks if the given valueobjisnulland throws aValidationExceptionwith the specified message if it isnull.static final <T> TObjects.requireNonNullElse(T obj, T defaultObj) Returns the first argument if it is notnull, otherwise it returns the non-nullsecond argument.static final <T> TObjects.requireNonNullElseGet(T obj, Supplier<? extends T> supplier) Returns the first argument if it is notnull, otherwise it returns the non-nullvalue returned bysupplier.get().
