mirror of
https://github.com/klmp200/PQT_Gestionnaire_vente_stock.git
synced 2024-11-16 21:33:21 +00:00
Module Core, clss Product : update méthode equals(); ajout TODO
This commit is contained in:
parent
26e94d8078
commit
651f976601
@ -6,7 +6,7 @@ import java.io.Serializable;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
//TODO faire en sorte que les composés reprennent les qté dispo des composants
|
||||||
/**
|
/**
|
||||||
* Created by Notmoo on 18/07/2017.
|
* Created by Notmoo on 18/07/2017.
|
||||||
*/
|
*/
|
||||||
@ -123,6 +123,7 @@ public class Product implements ILoggable, Serializable{
|
|||||||
return this.id == other.id
|
return this.id == other.id
|
||||||
&& Objects.equals(this.name, other.name)
|
&& Objects.equals(this.name, other.name)
|
||||||
&& Objects.equals(this.components, other.components)
|
&& Objects.equals(this.components, other.components)
|
||||||
&& Objects.equals(this.category, other.category);
|
&& Objects.equals(this.category, other.category)
|
||||||
|
&& Objects.equals(this.price, other.price);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user