@JsonIgnore public Period getWindowEnd(WindowName windowName) { MutablePeriod period = new MutablePeriod(); for (MilestoneWindow window : windows) { period.add(window.getPeriod()); if (window.getName().equals(windowName)) { break; } } return period.toPeriod(); }
public void testSetInto_Object() throws Exception { MutablePeriod m = new MutablePeriod(PeriodType.millis()); NullConverter.INSTANCE.setInto(m, null, null); assertEquals(0L, m.getMillis()); }