com.versionone.apiclient.services.AsOfBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
Show all versions of VersionOne.SDK.Java.APIClient Show documentation
A library for custom Java development against the VersionOne Development Platform's REST API.
package com.versionone.apiclient.services;
import java.text.SimpleDateFormat;
import com.versionone.apiclient.Query;
public class AsOfBuilder extends QueryBuilder {
@Override
protected void doBuild(Query query, BuildResult result) {
if(query.getAsOf().compareTo(Query.MIN_DATE) > 0) {
SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
result.querystringParts.add("asof=" + df.format(query.getAsOf()));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy