Uses of Interface
org.kiwiproject.beta.base.KiwiCasts2.ListCheckStrategy
Packages that use KiwiCasts2.ListCheckStrategy
-
Uses of KiwiCasts2.ListCheckStrategy in org.kiwiproject.beta.base
Classes in org.kiwiproject.beta.base that implement KiwiCasts2.ListCheckStrategyModifier and TypeClassDescriptionstatic classDefault implementation ofKiwiCasts2.ListCheckStrategythat usesKiwiCasts2.DEFAULT_MAX_NON_NULL_CHECKSas the maximum non-null checks and checks only one (non-null) element in the list.static classStandard implementation ofKiwiCasts2.ListCheckStrategythat allows configuring the number of non-null and type checks to perform.Methods in org.kiwiproject.beta.base with parameters of type KiwiCasts2.ListCheckStrategyModifier and TypeMethodDescriptionstatic <T> List<T>KiwiCasts2.castToListAndCheckElements(Class<T> expectedType, Object object, KiwiCasts2.ListCheckStrategy strategy) Casts the given object to a List and checks that its elements are of the expected type using the specified check strategy.