org.opencms.search.galleries
Class CmsGallerySearchParameters.CmsGallerySearchTimeRange

java.lang.Object
  extended by org.opencms.search.galleries.CmsGallerySearchParameters.CmsGallerySearchTimeRange
Enclosing class:
CmsGallerySearchParameters

public class CmsGallerySearchParameters.CmsGallerySearchTimeRange
extends java.lang.Object

Helper class to store a time range.


Constructor Summary
CmsGallerySearchParameters.CmsGallerySearchTimeRange()
          Default constructor.
CmsGallerySearchParameters.CmsGallerySearchTimeRange(long startTime, long endTime)
          Constructor with start and end time.
 
Method Summary
 long getEndTime()
          Returns the end time of the time range.
 long getStartTime()
          Returns the start time of the time range.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmsGallerySearchParameters.CmsGallerySearchTimeRange

public CmsGallerySearchParameters.CmsGallerySearchTimeRange()
Default constructor.

This will create an object where the start date is equal to Long.MIN_VALUE and the end date is equal to Long.MAX_VALUE.


CmsGallerySearchParameters.CmsGallerySearchTimeRange

public CmsGallerySearchParameters.CmsGallerySearchTimeRange(long startTime,
                                                            long endTime)
Constructor with start and end time.

Parameters:
startTime - the start time of the time range
endTime - the end time of the time range
Method Detail

getEndTime

public long getEndTime()
Returns the end time of the time range.

Returns:
the end time of the time range

getStartTime

public long getStartTime()
Returns the start time of the time range.

Returns:
the start time of the time range