src/main/java/io/maggregator/Aggregator.java
public static final Aggregator of(MongoDatabase mongoDatabase) {
        if (mongoDatabase == null)
            throw new IllegalArgumentException("MongoDatabase cannot be null");
        return new Aggregator(mongoDatabase);
    }
/**
     * Returns a new aggregator
     *
     * @param mongoDatabase Connection to the database
     * @return The aggregator
     *
     * @throws IllegalArgumentException if {@code mongoDatabase} is null
     */
Returns a new aggregator
@param mongoDatabase Connection to the database
@return The aggregator

@throws IllegalArgumentException if  mongoDatabase is null
Returns a new aggregator @param mongoDatabase Connection to the database @return The aggregator @throws IllegalArgumentException if mongoDatabase is null
public static final Aggregator of(MongoDatabase mongoDatabase) {
        if (mongoDatabase == null)
            throw new IllegalArgumentException("MongoDatabase cannot be null");
        return new Aggregator(mongoDatabase);
    }
public static final Aggregator of ( MongoDatabase mongoDatabase ) { if ( mongoDatabase == null ) throw new IllegalArgumentException ( "MongoDatabase cannot be null" ) ; return new Aggregator ( mongoDatabase ) ; }
Returns a new aggregator
 @param mongoDatabase Connection to the database
 @return The aggregator
Returns a new aggregator @param mongoDatabase Connection to the database @return The aggregator