Skip to content

Add Point.getInstant method #102

@jenetics

Description

@jenetics

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());
}

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions