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

com.braintreegateway.DateRangeNode Maven / Gradle / Ivy

The newest version!
package com.braintreegateway;

import java.util.Calendar;

public class DateRangeNode extends SearchNode {

    public DateRangeNode(String nodeName, T parent) {
        super(nodeName, parent);
    }

    public T between(Calendar min, Calendar max) {
        greaterThanOrEqualTo(min);
        lessThanOrEqualTo(max);
        return parent;
    }

    public T greaterThanOrEqualTo(Calendar min) {
        parent.addRangeCriteria(nodeName, new SearchCriteria("min", min));
        return parent;
    }
    
    public T lessThanOrEqualTo(Calendar max) {
        parent.addRangeCriteria(nodeName, new SearchCriteria("max", max));
        return parent;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy