io.github.mmm.validation.time.offsettime.ValidatorOffsetTimePast Maven / Gradle / Ivy
The newest version!
/* Copyright (c) The m-m-m Team, Licensed under the Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0 */
package io.github.mmm.validation.time.offsettime;
import java.time.OffsetTime;
import io.github.mmm.validation.time.ValidatorTemporalPast;
/**
* Implementation of {@link ValidatorTemporalPast} for {@link OffsetTime}.
*
* @since 1.0.0
*/
public class ValidatorOffsetTimePast extends ValidatorTemporalPast {
@Override
protected boolean isPast(OffsetTime value) {
return value.isBefore(OffsetTime.now());
}
}