SpeedRecord.Sample

public final class SpeedRecord.Sample


Represents a single measurement of the speed, a scalar magnitude.

See also
SpeedRecord

Summary

Public constructors

Public methods

boolean
equals(Object other)
final @NonNull Velocity

Speed in Velocity unit.

final @NonNull Instant

The point in time when the measurement was taken.

int

Public constructors

Sample

Added in 1.1.0-alpha07
public Sample(@NonNull Instant time, @NonNull Velocity speed)
Parameters
@NonNull Instant time

The point in time when the measurement was taken.

@NonNull Velocity speed

Speed in Velocity unit. Valid range: 0-1000000 meters/sec.

Public methods

equals

public boolean equals(Object other)

getSpeed

Added in 1.1.0-alpha07
public final @NonNull Velocity getSpeed()

Speed in Velocity unit. Valid range: 0-1000000 meters/sec.

getTime

Added in 1.1.0-alpha07
public final @NonNull Instant getTime()

The point in time when the measurement was taken.

hashCode

public int hashCode()