@Override
    public int hashCode() {
        int result = (posValue ? 1 : 0);
        result = 31 * result + (durationType != null ? durationType.hashCode() : 0);
        result = 31 * result + day;
        result = 31 * result + week;
        result = 31 * result + hour;
        result = 31 * result + minute;
        result = 31 * result + second;
        return result;
    }