FabricantDistributeurCSV.java
package com.sintia.ffl.admin.optique.catalogue.models;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
/**
* DTO created from the data read from the csv file
*
* @author jumazet
*/
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class FabricantDistributeurCSV {
private String cFabricant;
private String cOptoCodeDistributeur;
private String lDistributeur;
private String cOptoCodeFabricant;
private String lFabricant;
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
FabricantDistributeurCSV other = (FabricantDistributeurCSV) obj;
if (cFabricant == null) {
if (other.cFabricant != null) {
return false;
}
} else if (!cFabricant.equals(other.cFabricant)) {
return false;
}
if (cOptoCodeDistributeur == null) {
if (other.cOptoCodeDistributeur != null) {
return false;
}
} else if (!cOptoCodeDistributeur.equals(other.cOptoCodeDistributeur)) {
return false;
}
if (cOptoCodeFabricant == null) {
if (other.cOptoCodeFabricant != null) {
return false;
}
} else if (!cOptoCodeFabricant.equals(other.cOptoCodeFabricant)) {
return false;
}
if (lDistributeur == null) {
if (other.lDistributeur != null) {
return false;
}
} else if (!lDistributeur.equals(other.lDistributeur)) {
return false;
}
if (lFabricant == null) {
if (other.lFabricant != null) {
return false;
}
} else if (!lFabricant.equals(other.lFabricant)) {
return false;
}
return true;
}
}