Class CompositeSpec<T>

  • Type Parameters:
    T - The target type for this Spec
    All Implemented Interfaces:
    Direct Known Subclasses:
    AndSpec, OrSpec

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

      • CompositeSpec

        protected CompositeSpec()
      • CompositeSpec

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

        protected CompositeSpec​(java.lang.Iterable<? extends Spec<? super T>> specs)
    • Method Detail

      • getSpecs

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

        public boolean isEmpty()
      • equals

        public final boolean equals​(java.lang.Object o)
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        hashCode in class java.lang.Object