Point

public final record demo.Point(int x, Instant at) implements Shape[source]

A timestamped location.

Parameters:
  • x – horizontal coordinate

  • at – time supplied by the standard-library dependency

Constructors

Point(int, Instant)

public Point(int x, Instant at)[source]

Fields and constants

at

x

public Instant at
public int x

Methods

at()

equals(Object)

hashCode()

toString()

x()

public Instant at()
public final boolean equals(Object o)
public final int hashCode()
public final String toString()
public int x()