001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.kernel.util;
016    
017    import java.util.Calendar;
018    import java.util.Locale;
019    import java.util.TimeZone;
020    
021    /**
022     * @author Brian Wing Shun Chan
023     * @author Marcellus Tavares
024     */
025    public interface CalendarFactory {
026    
027            public Calendar getCalendar();
028    
029            public Calendar getCalendar(int year, int month, int date);
030    
031            public Calendar getCalendar(
032                    int year, int month, int date, int hour, int minute);
033    
034            public Calendar getCalendar(
035                    int year, int month, int date, int hour, int minute, int second);
036    
037            public Calendar getCalendar(
038                    int year, int month, int date, int hour, int minute, int second,
039                    int millisecond);
040    
041            public Calendar getCalendar(
042                    int year, int month, int date, int hour, int minute, int second,
043                    int millisecond, TimeZone timeZone);
044    
045            public Calendar getCalendar(Locale locale);
046    
047            public Calendar getCalendar(long time);
048    
049            public Calendar getCalendar(long time, TimeZone timeZone);
050    
051            public Calendar getCalendar(TimeZone timeZone);
052    
053            public Calendar getCalendar(TimeZone timeZone, Locale locale);
054    
055    }