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

com.recombee.api_client.bindings.Entity Maven / Gradle / Ivy

There is a newer version: 4.1.5
Show newest version
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