
com.github.davidmoten.odata.client.ObjectOrDeltaLink Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-runtime Show documentation
Show all versions of odata-client-runtime Show documentation
OData client runtime for use with generated code
The newest version!
package com.github.davidmoten.odata.client;
import java.util.Optional;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.davidmoten.guavamini.Preconditions;
public final class ObjectOrDeltaLink {
@JsonProperty("object")
@JsonInclude(Include.NON_NULL)
private final Optional object;
@JsonProperty("deltaLink")
@JsonInclude(Include.NON_NULL)
private final Optional deltaLink;
ObjectOrDeltaLink(Optional object, Optional deltaLink) {
Preconditions.checkNotNull(object);
Preconditions.checkNotNull(deltaLink);
Preconditions
.checkArgument(object.isPresent() && !deltaLink.isPresent() || !object.isPresent());
this.object = object;
this.deltaLink = deltaLink;
}
public Optional object() {
return object;
}
public Optional deltaLink() {
return deltaLink;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy