@Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + ((hour == null) ? 0 : hour.hashCode()); result = prime * result + ((min == null) ? 0 : min.hashCode()); result = prime * result + ((sec10 == null) ? 0 : sec10.hashCode()); return result; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; HourMinSec10 other = (HourMinSec10) obj; if (hour == null) { if (other.hour != null) return false; } else if (!hour.equals(other.hour)) return false; if (min == null) { if (other.min != null) return false; } else if (!min.equals(other.min)) return false; if (sec10 == null) { if (other.sec10 != null) return false; } else if (!sec10.equals(other.sec10)) return false; return true; }