Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Point.getInstant method #102

Closed
jenetics opened this issue Oct 22, 2019 · 1 comment
Closed

Add Point.getInstant method #102

jenetics opened this issue Oct 22, 2019 · 1 comment
Assignees
Milestone

Comments

@jenetics
Copy link
Owner

Add Point.getInstant default method.

/**
 * Creation/modification instant of the given point.
 *
 * @return creation/modification instant for the point
 */
public default Optional<Instant> getInstant() {
    return getTime().map(t -> t.toOffsetDateTime().toInstant());
}
@jenetics jenetics added this to the v1.6.0 milestone Oct 22, 2019
@jenetics jenetics self-assigned this Oct 22, 2019
jenetics added a commit that referenced this issue Oct 28, 2019
@jenetics
Copy link
Owner Author

Merged into r1.6.0. branch.

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

No branches or pull requests

1 participant