All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.serenitybdd.screenplay.questions.AggregateQuestions Maven / Gradle / Ivy

There is a newer version: 4.2.9
Show newest version
package net.serenitybdd.screenplay.questions;

import net.serenitybdd.screenplay.Question;

import java.util.Collection;
import java.util.Comparator;
import java.util.List;

public class AggregateQuestions {

    public static  Question theTotalNumberOf(Question> listQuestion) {
        return new CountQuestion(listQuestion);
    }

    public static Question theSumOf(Question> listQuestion) {
        return new SumQuestion(listQuestion);
    }

    public static > Question theMaximumOf(Question> listQuestion) {
        return new MaxQuestion<>(listQuestion);
    }

    public static > Question theMaximumOf(Question> listQuestion,
                                                                                      Comparator comparator) {
        return new MaxQuestion<>(listQuestion, comparator);
    }

    public static > Question theMinimumOf(Question> listQuestion) {
        return new MinQuestion<>(listQuestion);
    }

    public static > Question theMinimumOf(Question> listQuestion,
                                                                                      Comparator comparator) {
        return new MinQuestion<>(listQuestion,comparator);
    }

    public static  Question> theReverse(Question> listQuestion) {
        return new ReverseQuestion<>(listQuestion);
    }

    public static > Question> theSorted(Question> listQuestion) {
        return new SortedQuestion<>(listQuestion);
    }

    public static > Question> theSorted(Question> listQuestion,
                                                                                         Comparator comparator) {
        return new SortedQuestion<>(listQuestion, comparator);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy