001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
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    }