org.oxerr.viagogo.model.SeatingDetail Maven / Gradle / Ivy
package org.oxerr.viagogo.model;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
public class SeatingDetail extends Seating {
private static final long serialVersionUID = 2023021301L;
public SeatingDetail() {
}
public SeatingDetail(String section, String row, String seatFrom, String seatTo) {
super(section, row, seatFrom, seatTo);
}
@Override
public int hashCode() {
return HashCodeBuilder.reflectionHashCode(this);
}
@Override
public boolean equals(Object obj) {
if (obj == null) {
return false;
}
if (obj == this) {
return true;
}
if (obj.getClass() != getClass()) {
return false;
}
SeatingDetail rhs = (SeatingDetail) obj;
return EqualsBuilder.reflectionEquals(this, rhs);
}
}