// Path: java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/TimeInterval.java
// public static TimeInterval ofStartDateTimeAndEndDateTime(OffsetDateTime startDateTime, OffsetDateTime endDateTime) {
// 
//     checkNotNull(startDateTime, "A start date time hasn't been specified.");
//     checkNotNull(endDateTime, "An end date time hasn't been specified.");
//     checkArgument(!endDateTime.isBefore(startDateTime), "The specified start and end date times are reversed.");
// 
//     TimeInterval timeInterval = new TimeInterval();
// 
//     timeInterval.startDateTime = startDateTime;
//     timeInterval.endDateTime = endDateTime;
// 
//     return timeInterval;
// }


import java.time.LocalDate;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import static java.time.Month.NOVEMBER;
import static java.time.Month.OCTOBER;
import static org.openmhealth.schema.domain.omh.TimeInterval.ofStartDateTimeAndEndDateTime;
/*
 * Copyright 2015 Open mHealth
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openmhealth.schema.domain.omh;




/**
 * A factory of time frames used to simplify tests and avoid repetition.
 *
 * @author Emerson Farrugia
 */
public class TimeFrameFactory {

    public static final ZoneId PT = ZoneId.of("America/Los_Angeles");

    public static final TimeFrame FIXED_MONTH =
// Path: java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/TimeInterval.java
// public static TimeInterval ofStartDateTimeAndEndDateTime(OffsetDateTime startDateTime, OffsetDateTime endDateTime) {
// 
//     checkNotNull(startDateTime, "A start date time hasn't been specified.");
//     checkNotNull(endDateTime, "An end date time hasn't been specified.");
//     checkArgument(!endDateTime.isBefore(startDateTime), "The specified start and end date times are reversed.");
// 
//     TimeInterval timeInterval = new TimeInterval();
// 
//     timeInterval.startDateTime = startDateTime;
//     timeInterval.endDateTime = endDateTime;
// 
//     return timeInterval;
// }


// Path: java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/TimeFrameFactory.java
import java.time.LocalDate;
import java.time.ZoneId;
import java.time.ZonedDateTime;
import static java.time.Month.NOVEMBER;
import static java.time.Month.OCTOBER;
import static org.openmhealth.schema.domain.omh.TimeInterval.ofStartDateTimeAndEndDateTime;

/*
 * Copyright 2015 Open mHealth
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.openmhealth.schema.domain.omh;




/**
 * A factory of time frames used to simplify tests and avoid repetition.
 *
 * @author Emerson Farrugia
 */
public class TimeFrameFactory {

    public static final ZoneId PT = ZoneId.of("America/Los_Angeles");

    public static final TimeFrame FIXED_MONTH =
            new TimeFrame(ofStartDateTimeAndEndDateTime(