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

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

Introduction

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

Prototype

public boolean isBeforeNow() 

Source Link

Document

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

Usage

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

License:Apache License

public boolean isValid(AbstractInstant value, ConstraintValidatorContext context) {
    //null values are valid
    if (value == null) {
        return true;
    }//from   w w w.j  a  v a  2 s  . c  o  m

    return value.isBeforeNow();
}