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

hudson.util.AbstractRunList Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2013 Hudson.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Hudson - initial API and implementation and/or initial documentation
 */
package hudson.util;

import hudson.model.Node;
import java.util.ArrayList;
import java.util.Collection;

/**
 *
 * @author rovarghe
 */
public abstract class AbstractRunList extends ArrayList {

    public AbstractRunList() {
    }

    public AbstractRunList(Collection c) {
        super(c);
    }

    /**
     * Filter the list by timestamp.
     *
     * {@code s<=;e}.
     */
    public abstract AbstractRunList byTimestamp(long start, long end);

    /**
     * Filter the list to non-successful builds only.
     */
    public abstract AbstractRunList failureOnly();

    public abstract R getFirstBuild();

    public abstract R getLastBuild();

    /**
     * Reduce the size of the list by only leaving relatively new ones. This
     * also removes on-going builds, as RSS cannot be used to publish
     * information if it changes.
     */
    public abstract AbstractRunList newBuilds();

    /**
     * Filter the list to builds on a single node only
     */
    public abstract AbstractRunList node(Node node);

    /**
     * Filter the list to regression builds only.
     */
    public abstract AbstractRunList regressionOnly();
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy