AnalyticsVariable.java 1.44 KB
/*
 * Decompiled with CFR 0_118.
 */
package com.day.cq.analytics.sitecatalyst.impl.model;

import com.day.cq.analytics.sitecatalyst.impl.model.AnalyticsVariableTitle;
import java.util.ArrayList;
import java.util.List;

public class AnalyticsVariable {
    private String id;
    private String name;
    private List<AnalyticsVariableTitle> titles = new ArrayList<AnalyticsVariableTitle>();

    public AnalyticsVariable() {
    }

    public AnalyticsVariable(String id, String name) {
        this.id = id;
        this.name = name;
        this.titles.add(new AnalyticsVariableTitle(name, ""));
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

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

    public void setName(String name) {
        this.name = name;
    }

    public List<AnalyticsVariableTitle> getTitles() {
        return this.titles;
    }

    public void setTitles(List<AnalyticsVariableTitle> titles) {
        this.titles = titles;
    }

    public boolean isEnabled() {
        return true;
    }

    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof AnalyticsVariable)) {
            return false;
        }
        AnalyticsVariable that = (AnalyticsVariable)o;
        return this.id.equals(that.id);
    }

    public int hashCode() {
        return this.id.hashCode();
    }
}