/*******************************************************************************
* Copyright (c) 2015 IBH SYSTEMS GmbH.
* 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:
* IBH SYSTEMS GmbH - initial API and implementation
*******************************************************************************/
package org.eclipse.packagedrone.repo.channel.provider;
public class ProviderInformation
{
private final String id;
private final String label;
private final String description;
public ProviderInformation ( final String id, final String label, final String description )
{
this.id = id;
this.label = label;
this.description = description;
}
public String getId ()
{
return this.id;
}
public String getLabel ()
{
return this.label;
}
public String getDescription ()
{
return this.description;
}
@Override
public int hashCode ()
{
final int prime = 31;
int result = 1;
result = prime * result + ( this.id == null ? 0 : this.id.hashCode () );
return result;
}
@Override
public boolean equals ( final Object obj )
{
if ( this == obj )
{
return true;
}
if ( obj == null )
{
return false;
}
if ( ! ( obj instanceof ProviderInformation ) )
{
return false;
}
final ProviderInformation other = (ProviderInformation)obj;
if ( this.id == null )
{
if ( other.id != null )
{
return false;
}
}
else if ( !this.id.equals ( other.id ) )
{
return false;
}
return true;
}
}