Class NotSpec<T>

java.lang.Object
org.gradle.api.specs.NotSpec<T>
Type Parameters:
T - The target type for this Spec
All Implemented Interfaces:
Spec<T>

public class NotSpec<T> extends Object implements Spec<T>
A Spec implementation which negates another Spec.
  • Constructor Details

    • NotSpec

      public NotSpec(Spec<? super T> sourceSpec)
  • Method Details

    • isSatisfiedBy

      public boolean isSatisfiedBy(T element)
      Specified by:
      isSatisfiedBy in interface Spec<T>