List of usage examples for org.joda.time MonthDay isEqual
public boolean isEqual(ReadablePartial partial)
From source file:org.apereo.portal.events.aggr.dao.jpa.QuarterDetailImpl.java
License:Apache License
public QuarterDetailImpl(MonthDay start, MonthDay end, int quarterId) { Validate.notNull(start);// w ww . j av a 2 s. c o m Validate.notNull(end); if (start.isEqual(end)) { throw new IllegalArgumentException("start cannot equal end"); } this.id = -1; this.start = start; this.end = end; this.quarterId = quarterId; }