aboutsummaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/text/interpretation/AnnotationClass.java
blob: 786f43b3c33797e3968aa831a9378c0d53f9fd0c (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 Vespa.ai. 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();
    }


}