MCPcopy Index your code
hub / github.com/SeanDragon/protools / isSame

Method isSame

common/src/main/java/pro/tools/time/DatePlus.java:322–348  ·  view source on GitHub ↗
(DatePlus datePlus, DateType dateType)

Source from the content-addressed store, hash-verified

320 }
321
322 public boolean isSame(DatePlus datePlus, DateType dateType) {
323 boolean isSame;
324 switch (dateType) {
325 case YEAR:
326 isSame = ofYear(datePlus) == 0;
327 break;
328 case MONTH:
329 isSame = ofMonth(datePlus) == 0;
330 break;
331 case DAY:
332 isSame = ofDay(datePlus) == 0;
333 break;
334 case HOUR:
335 isSame = ofHour(datePlus) == 0;
336 break;
337 case MINUTES:
338 isSame = ofMinutes(datePlus) == 0;
339 break;
340 case SECONDS:
341 isSame = ofSeconds(datePlus) == 0;
342 break;
343 default:
344 isSame = ofSeconds(datePlus) == 0;
345 break;
346 }
347 return isSame;
348 }
349
350 public boolean isAfter(DatePlus datePlus, DateType dateType) {
351 boolean isAfter;

Callers

nothing calls this directly

Calls 6

ofYearMethod · 0.95
ofMonthMethod · 0.95
ofDayMethod · 0.95
ofHourMethod · 0.95
ofMinutesMethod · 0.95
ofSecondsMethod · 0.95

Tested by

no test coverage detected