com.braintreegateway.DateRangeNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.braintree-java
Show all versions of org.apache.servicemix.bundles.braintree-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
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;
}
}