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

com.offbytwo.jenkins.model.Queue Maven / Gradle / Ivy

package com.offbytwo.jenkins.model;

import java.util.List;

public class Queue
    extends BaseModel
{
    private List discoverableItems;

    private List items;

    public Queue()
    {
    }

    public List getDiscoverableItems()
    {
        return discoverableItems;
    }

    public void setDiscoverableItems( List discoverableItems )
    {
        this.discoverableItems = discoverableItems;
    }

    @Override
    public int hashCode()
    {
        final int prime = 31;
        int result = 1;
        result = prime * result + ( ( discoverableItems == null ) ? 0 : discoverableItems.hashCode() );
        result = prime * result + ( ( items == null ) ? 0 : items.hashCode() );
        return result;
    }

    public List getItems()
    {
        return items;
    }

    public void setItems( List items )
    {
        this.items = items;
    }

    @Override
    public boolean equals( Object obj )
    {
        if ( this == obj )
            return true;
        if ( obj == null )
            return false;
        if ( getClass() != obj.getClass() )
            return false;
        Queue other = (Queue) obj;
        if ( discoverableItems == null )
        {
            if ( other.discoverableItems != null )
                return false;
        }
        else if ( !discoverableItems.equals( other.discoverableItems ) )
            return false;
        if ( items == null )
        {
            if ( other.items != null )
                return false;
        }
        else if ( !items.equals( other.items ) )
            return false;
        return true;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy