VariationDefImpl.java 1.2 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  com.adobe.cq.dam.cfm.ContentVariation
 *  com.adobe.cq.dam.cfm.VariationDef
 */
package com.adobe.cq.dam.cfm.impl;

import com.adobe.cq.dam.cfm.ContentVariation;
import com.adobe.cq.dam.cfm.VariationDef;

public class VariationDefImpl
implements VariationDef {
    private final String name;
    private final String title;
    private final String description;

    public VariationDefImpl(String name, String title, String description) {
        this.name = name;
        this.title = title;
        this.description = description;
    }

    public VariationDefImpl(ContentVariation src) {
        this(src.getName(), src.getTitle(), src.getDescription());
    }

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

    public String getTitle() {
        return this.title;
    }

    public String getDescription() {
        return this.description;
    }

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

    public boolean equals(Object obj) {
        if (obj instanceof VariationDefImpl) {
            return this.name.equals(((VariationDefImpl)obj).getName());
        }
        return false;
    }
}