isBetween

public boolean isBetween(T periodStart, T periodEnd)

Checks if this point is time lies between the given.

All three Temporals must exactly the same runtime type. Otherwise, an IllegalArgumentException is thrown.

Return

true if this point in time lies in between the given two

Parameters

periodStart

lower bound, exclusive

periodEnd

higher bound, inclusive


public boolean isBetween(Instant periodStart, Instant periodEnd)
public boolean isBetween(Timestamp periodStart, Timestamp periodEnd)

Checks if this point is time lies between the given.

Return

true if this point in time lies in between the given two

Parameters

periodStart

lower bound, exclusive

periodEnd

higher bound, inclusive