com.offbytwo.jenkins.model.Queue Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2013 Cosmin Stejerean, Karl Heinz Marbaise, and contributors.
*
* Distributed under the MIT license: http://opensource.org/licenses/MIT
*/
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;
}
}