38 lines
1.3 KiB
Java
38 lines
1.3 KiB
Java
package es.tatvil.taiageweb.empleo;
|
|
|
|
import java.time.LocalDate;
|
|
import java.util.Objects;
|
|
|
|
public class PublicacionEmpleo {
|
|
private String organismo;
|
|
private LocalDate fecha;
|
|
private String titulo;
|
|
private String enlace;
|
|
|
|
// Getters, setters, equals, hashCode
|
|
public String getOrganismo() { return organismo; }
|
|
public void setOrganismo(String organismo) { this.organismo = organismo; }
|
|
public LocalDate getFecha() { return fecha; }
|
|
public void setFecha(LocalDate fecha) { this.fecha = fecha; }
|
|
public String getTitulo() { return titulo; }
|
|
public void setTitulo(String titulo) { this.titulo = titulo; }
|
|
public String getEnlace() { return enlace; }
|
|
public void setEnlace(String enlace) { this.enlace = enlace; }
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
PublicacionEmpleo that = (PublicacionEmpleo) o;
|
|
return Objects.equals(organismo, that.organismo) &&
|
|
Objects.equals(fecha, that.fecha) &&
|
|
Objects.equals(titulo, that.titulo) &&
|
|
Objects.equals(enlace, that.enlace);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(organismo, fecha, titulo, enlace);
|
|
}
|
|
}
|