Package com.tngtech.archunit.lang
Interface ClassesTransformer<T>
-
- All Superinterfaces:
HasDescription
- All Known Implementing Classes:
AbstractClassesTransformer,ClassesIdentityTransformer,Slices.Transformer
@PublicAPI(usage=INHERITANCE) public interface ClassesTransformer<T> extends HasDescription
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ClassesTransformer<T>as(java.lang.String description)ClassesTransformer<T>that(DescribedPredicate<? super T> predicate)Can be used to further filter the transformation result.DescribedIterable<T>transform(JavaClasses collection)Defines how to transform importedJavaClassesto the respective objects to test.-
Methods inherited from interface com.tngtech.archunit.base.HasDescription
getDescription
-
-
-
-
Method Detail
-
transform
DescribedIterable<T> transform(JavaClasses collection)
Defines how to transform importedJavaClassesto the respective objects to test.- Parameters:
collection- ImportedJavaClasses- Returns:
- A
DescribedIterableholding the transformed objects - See Also:
Slices.Transformer
-
that
ClassesTransformer<T> that(DescribedPredicate<? super T> predicate)
Can be used to further filter the transformation result.- Parameters:
predicate- Predicate to filter the collection of transformed objects- Returns:
- A transformer that additionally filters the transformed result
-
as
ClassesTransformer<T> as(java.lang.String description)
- Parameters:
description- A new description for this transformer- Returns:
- A transformer for the same transformation with an adjusted description
-
-