Example usage for org.joda.time.base AbstractInstant isAfterNow

List of usage examples for org.joda.time.base AbstractInstant isAfterNow

Introduction

In this page you can find the example usage for org.joda.time.base AbstractInstant isAfterNow.

Prototype

public boolean isAfterNow() 

Source Link

Document

Is this instant strictly after the current instant comparing solely by millisecond.

Usage

From source file:org.hibernate.validator.constraints.impl.FutureValidatorForAbstractInstant.java

License:Apache License

public boolean isValid(AbstractInstant value, ConstraintValidatorContext context) {
    //null values are valid
    if (value == null) {
        return true;
    }/*  w ww .j  a  v  a2 s.co m*/

    return value.isAfterNow();
}