Package com.salas.bb.utils

Examples of com.salas.bb.utils.TimeRange


         */
        FilterArticlePublishPeriod(final int aPeriod)
        {
            super("articlePublishPeriodf");
            period = aPeriod;
            validTimeRange = new TimeRange(0, period);
        }
View Full Code Here


         */
        FilterFeedNonAttendancePeriod(final int aPeriod)
        {
            super("feedNonAttendancePeriodf");
            period = aPeriod;
            validTimeRange = new TimeRange(0, period);
        }
View Full Code Here

     *         in conjunction with comparison value.
     */
    public boolean match(String targetValue, String comparisonValue)
    {
        long targetTimestamp = Long.parseLong(targetValue);
        TimeRange timeRange = nameToRange(comparisonValue);

        return match(targetTimestamp, timeRange);
    }
View Full Code Here

        long time = aArticle.getPublicationDate().getTime();

        int index = -1;
        for (int i = 0; index == -1 && i < aRanges.length; i++)
        {
            TimeRange range = aRanges[i];
            if (range.isInRange(time)) index = i;
        }

        return index;
    }
View Full Code Here

            if (aTime == -1)
            {
                timeS = Strings.message("guide.dialog.readinglists.table.latest.never");
            } else
            {
                TimeRange range = findTimeRange(aTime);
                if (range == TimeRange.TR_FUTURE)
                {
                    timeS = Strings.message("guide.dialog.readinglists.table.latest.never");
                } else if (range == TimeRange.TR_TODAY)
                {
View Full Code Here

         *
         * @return range.
         */
        private TimeRange findTimeRange(long aTime)
        {
            TimeRange range = null;

            for (int i = 0; range == null && i < TimeRange.TIME_RANGES.length; i++)
            {
                TimeRange timeRange = TimeRange.TIME_RANGES[i];
                if (timeRange.isInRange(aTime)) range = timeRange;
            }

            return range;
        }
View Full Code Here

TOP

Related Classes of com.salas.bb.utils.TimeRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.