blob: 387f73e730e4b1f2119537d2e6ee9601571bc7a2 (
plain) (
blame)
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
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.text.interpretation;
// TODO: Javadoc
// TODO: Eventually we need to define the set of classes available here
public class AnnotationClass {
private String clazz;
public AnnotationClass(String clazz) {
this.clazz = clazz;
}
public String getClazz() {
return clazz;
}
@Override
public boolean equals(Object o) {
if (!(o instanceof AnnotationClass)) {
return false;
}
AnnotationClass aClass = (AnnotationClass)o;
return aClass.clazz == null ? clazz == null : clazz.equals(aClass.getClazz());
}
@Override
public int hashCode() {
return clazz == null ? 0 : clazz.hashCode();
}
}
|