VariationDefImpl.java
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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;
}
}