aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/java/com/yahoo/documentmodel/OwnedType.java
blob: 4a4e90f31e65ec93f1f7a4afef2e04b6ccdf8049 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.documentmodel;

/**
 * API for a type declared in a specific document
 *
 * @author arnej
 **/
public interface OwnedType {
    String getOwnerName();
    String getUniqueName();
    default int getUniqueId() {
        return getUniqueName().hashCode();
    }
}