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

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

There is a newer version: 4.1.5
Show newest version
package com.recombee.api_client.bindings;

/*
 This file is auto-generated, do not edit
*/

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import java.util.Map;
import java.util.Date;

public class PropertyInfo extends RecombeeBinding {
    /**
     * Name of the property
     */
    protected String name;
    /**
     * Type of the property
     */
    protected String type;

    public PropertyInfo () {}

    public PropertyInfo (String name,String type) {
        this.name = name;
        this.type = type;
    }

    public PropertyInfo (Map jsonObject) {
        this.name = (String) jsonObject.get("name");
        this.type = (String) jsonObject.get("type");
    }

    public String getName() {
         return this.name;
    }

    public String getType() {
         return this.type;
    }

    @Override
    public int hashCode() {
    return new HashCodeBuilder(17, 31).
        append(this.name).
        append(this.type).
        toHashCode();
    }

    @Override
    public boolean equals(Object obj) {
         if (!(obj instanceof PropertyInfo))
             return false;
         if (obj == this)
             return true;
    
         PropertyInfo rhs = (PropertyInfo) obj;
         return new EqualsBuilder().
            append(this.name, rhs.name).
            append(this.type, rhs.type).
            isEquals();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy