com.recombee.api_client.bindings.Entity Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of api-client Show documentation
Show all versions of api-client Show documentation
A client library for easy use of the Recombee recommendation API
package com.recombee.api_client.bindings;
import java.util.Map;
public abstract class Entity extends RecombeeBinding {
/**
* Property values of the entity (only if the list requested was set to return property values)
*/
protected Map values;
private boolean valuesAreSet;
public Entity() {}
public Entity(Map values)
{
this.values = values;
this.valuesAreSet = true;
}
public Map getValues() {
if(!this.valuesAreSet)
throw new IllegalStateException("getValues() is possible only if the recommendation requested was set to return property values (invoke setReturnProperties(true))");
return this.values;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy