Examples of QuarterDetail


Examples of org.jasig.portal.events.aggr.QuarterDetail

        verifyCompareToInstant(new DateTime(2012, 12, 31, 23, 59, 59, 999), quarters, -1, -10,  -1);
    }
    protected void verifyCompareToInstant(DateTime dt, List<QuarterDetail> quarters, int... contains) {
        final Iterator<QuarterDetail> itr = quarters.iterator();
        for (int q = 0; q < 4; q++) {
            final QuarterDetail quarter = itr.next();
            assertEquals(q + ": " + dt + " is not between " + quarter.getStart() + " and " + quarter.getEnd(), contains[q], quarter.compareTo(dt));
        }
    }
View Full Code Here

Examples of org.jasig.portal.events.aggr.QuarterDetail

        final TypedQuery<QuarterDetailImpl> query = this.createCachedQuery(this.findAllQuarterDetailsQuery);
        final Set<QuarterDetailImpl> existingQuarterDetails = new HashSet<QuarterDetailImpl>(query.getResultList());

        for (final Iterator<QuarterDetail> newQuarterDetailsItr = newQuarterDetails.iterator(); newQuarterDetailsItr.hasNext();) {
            final QuarterDetail quarterDetail = newQuarterDetailsItr.next();
           
            //If QD exists in both new and existing remove it from both
            if (existingQuarterDetails.remove(quarterDetail)) {
                newQuarterDetailsItr.remove();
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.