implements Serializable
{
- private String id;
private String name;
// no op
}
- public Repository( String id )
+ public Repository( String name )
{
- this.id = id;
- this.name = id;
- }
-
- public String getId()
- {
- return id;
- }
-
- public void setId( String id )
- {
- this.id = id;
+ this.name = name;
}
public String getName()
Repository that = (Repository) o;
- if ( !id.equals( that.id ) )
+ if ( !name.equals( that.name ) )
{
return false;
}
@Override
public int hashCode()
{
- return id.hashCode();
+ return name.hashCode();
}
-
@Override
public String toString()
{
- final StringBuilder sb = new StringBuilder( "Repository{" );
- sb.append( "id='" ).append( id ).append( '\'' );
- sb.append( ", name='" ).append( name ).append( '\'' );
- //sb.append( ", namespaces=" ).append( namespaces );
- sb.append( '}' );
- return sb.toString();
+ return "Repository{" +
+ "name='" + name + '\'' +
+ '}';
}
}