Class CompositeSpec<T>

java.lang.Object
org.gradle.api.specs.CompositeSpec<T>
Type Parameters:
T - The target type for this Spec
All Implemented Interfaces:
Spec<T>
Direct Known Subclasses:
AndSpec, OrSpec

public abstract class CompositeSpec<T> extends Object implements Spec<T>
A Spec which aggregates a sequence of other Spec instances.
  • Constructor Details

    • CompositeSpec

      protected CompositeSpec()
    • CompositeSpec

      protected CompositeSpec(Spec<? super T>... specs)
    • CompositeSpec

      protected CompositeSpec(Iterable<? extends Spec<? super T>> specs)
  • Method Details

    • getSpecs

      public List<Spec<? super T>> getSpecs()
    • isEmpty

      public boolean isEmpty()
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object