Package dev.shamoo.runtime.core
Record Class DependencyResolution
java.lang.Object
java.lang.Record
dev.shamoo.runtime.core.DependencyResolution
public record DependencyResolution(List<PluginId> enableOrder, List<PluginId> disableOrder, Map<PluginId,Set<PluginId>> dependencies, Map<PluginId,List<DependencyBlock>> blocked, List<List<PluginId>> cycles)
extends Record
Immutable dependency graph and deterministic lifecycle ordering.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblocked()Returns the value of theblockedrecord component.cycles()Returns the value of thecyclesrecord component.Returns the value of thedependenciesrecord component.Returns the value of thedisableOrderrecord component.Returns the value of theenableOrderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DependencyResolution
public DependencyResolution(List<PluginId> enableOrder, List<PluginId> disableOrder, Map<PluginId, Set<PluginId>> dependencies, Map<PluginId, List<DependencyBlock>> blocked, List<List<PluginId>> cycles) Creates an instance of aDependencyResolutionrecord class.- Parameters:
enableOrder- the value for theenableOrderrecord componentdisableOrder- the value for thedisableOrderrecord componentdependencies- the value for thedependenciesrecord componentblocked- the value for theblockedrecord componentcycles- the value for thecyclesrecord component
-
-
Method Details
-
dependencies
Returns the value of thedependenciesrecord component.- Returns:
- the value of the
dependenciesrecord component
-
blocked
Returns the value of theblockedrecord component.- Returns:
- the value of the
blockedrecord component
-
cycles
Returns the value of thecyclesrecord component.- Returns:
- the value of the
cyclesrecord component
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
enableOrder
Returns the value of theenableOrderrecord component.- Returns:
- the value of the
enableOrderrecord component
-
disableOrder
Returns the value of thedisableOrderrecord component.- Returns:
- the value of the
disableOrderrecord component
-