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:CanOverrideDescriptionAllows 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:
asin 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:GivenObjectsAllows to restrict the set of objects under consideration. E.g.
Note that many predefinedall(customObjects).that(predicate)predicatescan be found within a subclassPredicatesof the respective domain object or a common ancestor. For example,predicatestargetingJavaClasscan be found withinJavaClass.Predicatesor one of the respective ancestors likeHasName.Predicates.- Specified by:
thatin interfaceGivenObjects<Slice>- Returns:
- A syntax conjunction element, which can be completed to form a full rule
-