Record Class ProjectionPlan
java.lang.Object
java.lang.Record
dev.archunitjava.projection.ProjectionPlan
public record ProjectionPlan(ProjectionDomain domain, List<ProjectionNodeMapping> explicitMappings, Set<DependencyKind> includedKinds, Map<DependencyKind, DependencyKind> kindRelabeling, boolean retainSelfEdges, List<ProjectionEdgeSelector> excludedEdges)
extends Record
Immutable, pure projection value shared by package, type, member, classpath, and module views.
Every application creates a new graph and never mutates the source graph or this plan.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectionPlan(ProjectionDomain domain, List<ProjectionNodeMapping> explicitMappings, Set<DependencyKind> includedKinds, Map<DependencyKind, DependencyKind> kindRelabeling, boolean retainSelfEdges, List<ProjectionEdgeSelector> excludedEdges) Creates an instance of aProjectionPlanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapply(DependencyGraph source) static ProjectionPlanclassPath(Map<? extends StableId, LocationId> mappings) domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexcludedEdgesrecord component.excluding(StableId origin, StableId target, DependencyKind kind) Returns the value of theexplicitMappingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theincludedKindsrecord component.includingOnly(Set<DependencyKind> kinds) Returns the value of thekindRelabelingrecord component.static ProjectionPlanmembers()static ProjectionPlanstatic ProjectionPlanpackages()relabeling(DependencyKind source, DependencyKind target) booleanReturns the value of theretainSelfEdgesrecord component.final StringtoString()Returns a string representation of this record class.static ProjectionPlantypes()
-
Constructor Details
-
ProjectionPlan
public ProjectionPlan(ProjectionDomain domain, List<ProjectionNodeMapping> explicitMappings, Set<DependencyKind> includedKinds, Map<DependencyKind, DependencyKind> kindRelabeling, boolean retainSelfEdges, List<ProjectionEdgeSelector> excludedEdges) Creates an instance of aProjectionPlanrecord class.- Parameters:
domain- the value for thedomainrecord componentexplicitMappings- the value for theexplicitMappingsrecord componentincludedKinds- the value for theincludedKindsrecord componentkindRelabeling- the value for thekindRelabelingrecord componentretainSelfEdges- the value for theretainSelfEdgesrecord componentexcludedEdges- the value for theexcludedEdgesrecord component
-
-
Method Details
-
packages
-
types
-
members
-
classPath
-
modules
-
includingOnly
-
relabeling
-
withoutSelfEdges
-
excluding
-
apply
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
explicitMappings
Returns the value of theexplicitMappingsrecord component.- Returns:
- the value of the
explicitMappingsrecord component
-
includedKinds
Returns the value of theincludedKindsrecord component.- Returns:
- the value of the
includedKindsrecord component
-
kindRelabeling
Returns the value of thekindRelabelingrecord component.- Returns:
- the value of the
kindRelabelingrecord component
-
retainSelfEdges
public boolean retainSelfEdges()Returns the value of theretainSelfEdgesrecord component.- Returns:
- the value of the
retainSelfEdgesrecord component
-
excludedEdges
Returns the value of theexcludedEdgesrecord component.- Returns:
- the value of the
excludedEdgesrecord component
-