<commit_before>package seedu.address.model.person;


import java.util.List;

import seedu.address.commons.exceptions.IllegalValueException;

/**
 * Represents a Task's Time in the to-do-list.
 * Guarantees: immutable; is valid as declared in {@link #isValidTime(String)}
 */
public class Time {
    
    public static final String MESSAGE_TIME_CONSTRAINTS = 
            "Time should be in 24hr format. Eg. 2359";
    public static final String TIME_VALIDATION_REGEX = "([01]?[0-9]|2[0-3])[0-5][0-9]";

    public final String value;
    public final java.util.Date startTime;
    public final java.util.Date endTime;

    
    public Time(String time) throws IllegalValueException {
        if (time == null){
            this.value = "";
            startTime = null;
            endTime = null;
            return;
        }
        if (!isValidTime(time)) {
            throw new IllegalValueException(MESSAGE_TIME_CONSTRAINTS);
        }
        this.value = time;
        startTime = null;
        endTime = null;
    }
    
    /**
     * Validates given time.
     *
     * @throws IllegalValueException if given time string is invalid.
     */
    public Time(List<java.util.Date> dateList) throws IllegalValueException {<commit_msg>allow dateList to be null; same as Date class<commit_after>package seedu.address.model.person;


import java.util.List;

import seedu.address.commons.exceptions.IllegalValueException;

/**
 * Represents a Task's Time in the to-do-list.
 * Guarantees: immutable; is valid as declared in {@link #isValidTime(String)}
 */
public class Time {
    
    public static final String MESSAGE_TIME_CONSTRAINTS = 
            "Time should be in 24hr format. Eg. 2359";
    public static final String TIME_VALIDATION_REGEX = "([01]?[0-9]|2[0-3])[0-5][0-9]";

    public final String value;
    public final java.util.Date startTime;
    public final java.util.Date endTime;

    
    public Time(String time) throws IllegalValueException {
        if (time == null){
            this.value = "";
            startTime = null;
            endTime = null;
            return;
        }
        if (!isValidTime(time)) {
            throw new IllegalValueException(MESSAGE_TIME_CONSTRAINTS);
        }
        this.value = time;
        startTime = null;
        endTime = null;
    }
    
    /**
     * Validates given time.
     *
     * @throws IllegalValueException if given time string is invalid.
     */
    public Time(List<java.util.Date> dateList) throws IllegalValueException {
    	if (dateList == null){
    		this.value = "";
            startTime = null;
            endTime = null;
            return;
    	}
{'fraction_non_alphanumeric': 0.10067873303167421, 'fraction_numerical': 0.01282051282051282, 'mean_word_length': 2.303860523038605, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5994751', 'n_tokens_mistral': 800, 'n_tokens_neox': 775, 'n_words': 211}