import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
/**
* @file Tables.java
*
*/
@XmlRootElement
public class Tables extends Property {
- private static final long serialVersionUID = 1L;
+ private static final long serialVersionUID = 1L;
@XmlElement
private byte tablesValue;
-
+
public static final String TablesPropName = "tables";
/**
* Construct a Tables property
*
- * @param tables the Tables
+ * @param tables the Tables
* @return Constructed object
*/
public Tables(byte tables) {
public byte getValue() {
return this.tablesValue;
}
-
+
@Override
public int hashCode() {
- return HashCodeBuilder.reflectionHashCode(this);
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + tablesValue;
+ return result;
}
@Override
public boolean equals(Object obj) {
- return EqualsBuilder.reflectionEquals(this, obj);
+ if (this == obj)
+ return true;
+ if (!super.equals(obj))
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ Tables other = (Tables) obj;
+ if (tablesValue != other.tablesValue)
+ return false;
+ return true;
}
@Override