Skip to content
Snippets Groups Projects
Commit af3a19e2 authored by Tobias Pietzsch's avatar Tobias Pietzsch
Browse files

Implement SourceGroup.equals

parent 0e2b99fb
No related branches found
No related tags found
No related merge requests found
......@@ -137,4 +137,33 @@ public class SourceGroup
{
this.isCurrent = isCurrent;
}
@Override
public boolean equals( final Object o )
{
if ( this == o )
return true;
if ( !( o instanceof SourceGroup ) )
return false;
final SourceGroup that = ( SourceGroup ) o;
if ( !name.equals( that.name ) )
return false;
if ( isActive != that.isActive )
return false;
if ( isCurrent != that.isCurrent )
return false;
return sourceIds.equals( that.sourceIds );
}
@Override
public int hashCode()
{
int result = sourceIds.hashCode();
result = 31 * result + name.hashCode();
result = 31 * result + ( isActive ? 1 : 0 );
result = 31 * result + ( isCurrent ? 1 : 0 );
return result;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment