Skip to content

Comments

Added DateTimeRange#16

Open
ALWAL12 wants to merge 1 commit intomasterfrom
feature/date-time-range
Open

Added DateTimeRange#16
ALWAL12 wants to merge 1 commit intomasterfrom
feature/date-time-range

Conversation

@ALWAL12
Copy link
Contributor

@ALWAL12 ALWAL12 commented Dec 21, 2017

No description provided.

return to;
}

public boolean includes(Optional<ZonedDateTime> date) {
Copy link

@Vaub Vaub Dec 22, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which situations do you see this method be used? wouldn't it be better to let the callee do that by themself?

}

@Override
public boolean equals(Object obj) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's good practice to check for nullity first

public final ZonedDateTime from;
public final ZonedDateTime to;

public InvalidDateRangeException(ZonedDateTime from, ZonedDateTime to) {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

InvalidDateTimeRangeException ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants