Seite 1 von 1

Ex10 Task 2: return type getNextDeadline

Verfasst: 25. Jan 2018 17:30
von GS-812
Hi,

should it Option[Instant] or Instant or String?

Re: Ex10 Task 2: return type getNextDeadline

Verfasst: 25. Jan 2018 17:36
von 0b101101101
Only Option[Instant] makes sense in my opinion.

Re: Ex10 Task 2: return type getNextDeadline

Verfasst: 26. Jan 2018 11:56
von meichholz
Hi,

both Option[Instant] or Instant (you could use Instant.MAX for the case where you don't have a deadline) can be used.

Best,
Matthias