Interface GivenNamedSlices
- All Superinterfaces:
CanOverrideDescription<GivenNamedSlices>
,GivenObjects<Slice>
- All Known Subinterfaces:
GivenSlices
@PublicAPI(usage=ACCESS)
public interface GivenNamedSlices
extends GivenObjects<Slice>, CanOverrideDescription<GivenNamedSlices>
-
Method Summary
Modifier and TypeMethodDescriptionAllows to adjust the description of this object.should()
that
(DescribedPredicate<? super Slice> predicate) Allows to restrict the set of objects under consideration.Methods inherited from interface com.tngtech.archunit.lang.syntax.elements.GivenObjects
should
-
Method Details
-
should
-
as
Description copied from interface:CanOverrideDescription
Allows to adjust the description of this object. Note that this method will not modify the current object, but instead return a new object with adjusted description.- Specified by:
as
in interfaceCanOverrideDescription<GivenNamedSlices>
- Parameters:
newDescription
- The description the result of this method will hold- Returns:
- A new equivalent object with adjusted description
-
that
Description copied from interface:GivenObjects
Allows to restrict the set of objects under consideration. E.g.
all(customObjects)
.that(predicate)
predicates
can be found within a subclassPredicates
of the respective domain object or a common ancestor. For example,predicates
targetingJavaClass
can be found withinJavaClass.Predicates
or one of the respective ancestors likeHasName.Predicates
.- Specified by:
that
in interfaceGivenObjects<Slice>
- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-