All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mmm.validation.time.instant.ValidatorInstantPast 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.instant;

import java.time.Instant;

import io.github.mmm.validation.time.ValidatorTemporalPast;

/**
 * Implementation of {@link ValidatorTemporalPast} for {@link Instant}.
 *
 * @since 1.0.0
 */
public class ValidatorInstantPast extends ValidatorTemporalPast {

  @Override
  protected boolean isPast(Instant value) {

    return value.isBefore(Instant.now());
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy