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