Example usage for org.apache.commons.lang3 Validate exclusiveBetween

List of usage examples for org.apache.commons.lang3 Validate exclusiveBetween

Introduction

In this page you can find the example usage for org.apache.commons.lang3 Validate exclusiveBetween.

Prototype

@SuppressWarnings("boxing")
public static void exclusiveBetween(final double start, final double end, final double value) 

Source Link

Document

Validate that the specified primitive value falls between the two exclusive values specified; otherwise, throws an exception.

Usage

From source file:ca.uhn.fhir.jpa.dao.DaoConfig.java

public void setSubscriptionPurgeInactiveAfterMillis(Long theMillis) {
    if (theMillis != null) {
        Validate.exclusiveBetween(0, Long.MAX_VALUE, theMillis);
    }//  www  .ja va  2  s  . co  m
    mySubscriptionPurgeInactiveAfterMillis = theMillis;
}