summaryrefslogtreecommitdiffstats
path: root/vespajlib/src/main/java/com/yahoo/tensor/functions/ToStringContext.java
blob: 62293a7e0acdaa81fd40f99738d35f2b772b89e7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.tensor.functions;

import com.google.common.annotations.Beta;

/**
 * A context which is passed down to all nested functions when returning a string representation.
 * The default implementation is empty as this library does not in itself have any need for a
 * context.
 *
 * @author bratseth
 */
@Beta
public interface ToStringContext {

    static ToStringContext empty() { return new ToStringContext() {}; }

}