Uses of Class
org.kiwiproject.beta.base.TypeMismatchException
Packages that use TypeMismatchException
-
Uses of TypeMismatchException in org.kiwiproject.beta.base
Methods in org.kiwiproject.beta.base that return TypeMismatchExceptionModifier and TypeMethodDescriptionstatic TypeMismatchExceptionTypeMismatchException.forUnexpectedCollectionElementType(Class<?> collectionType, Class<?> expectedType, Class<?> actualType) Factory method to create a new instance with a standardized message for a type mismatch on a collection element.static TypeMismatchExceptionTypeMismatchException.forUnexpectedMapKeyType(Class<?> expectedKeyType, Class<?> actualKeyType) Factory method to create a new instance with a standardized message for a map key type mismatch.static TypeMismatchExceptionTypeMismatchException.forUnexpectedMapValueType(Class<?> expectedValueType, Class<?> actualValueType) Factory method to create a new instance with a standardized message for a map value type mismatch.static TypeMismatchExceptionTypeMismatchException.forUnexpectedType(Class<?> expectedType, Class<?> actualType) Factory method to create a new instance with a standardized message for a type mismatch and no cause.static TypeMismatchExceptionTypeMismatchException.forUnexpectedTypeWithCause(Class<?> expectedType, Class<?> actualType, ClassCastException cause) Factory method to create a new instance with a standardized message for a type mismatch.static TypeMismatchExceptionTypeMismatchException.forUnexpectedTypeWithMessage(String message, Class<?> expectedType, Class<?> actualType, ClassCastException cause) Factory method to create a new instance ofTypeMismatchExceptionwith a custom message, expected type, actual type, and an optional cause.Methods in org.kiwiproject.beta.base that throw TypeMismatchExceptionModifier and TypeMethodDescription<T> Collection<T>KiwiCasts2.CollectionCheckStrategy.checkElements(Class<T> expectedType, Collection<T> coll) Checks that elements in the collection are of the expected type.<T> List<T>KiwiCasts2.ListCheckStrategy.checkElements(Class<T> expectedType, List<T> list) Checks that elements in the list are of the expected type.<T> Set<T>KiwiCasts2.SetCheckStrategy.checkElements(Class<T> expectedType, Set<T> set) Checks that elements in the set are of the expected type.<T> Collection<T>KiwiCasts2.StandardCollectionCheckStrategy.checkElements(Class<T> expectedType, Collection<T> coll) Checks that elements in the collection are of the expected type.<T> List<T>KiwiCasts2.StandardListCheckStrategy.checkElements(Class<T> expectedType, List<T> list) Checks that elements in the list are of the expected type.<T> Set<T>KiwiCasts2.StandardSetCheckStrategy.checkElements(Class<T> expectedType, Set<T> set) Checks that elements in the set are of the expected type.<K,V> Map<K, V> KiwiCasts2.MapCheckStrategy.checkEntries(Class<K> keyType, Class<V> valueType, Map<K, V> map) Checks that keys and values in the map are of the expected types.