aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/main/java/com/yahoo/vespa/hosted/controller/versions/VersionTarget.java
blob: 6d3aac9475e1d159b48367ad9d9a53879d2b3dcd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.versions;

import com.yahoo.component.Version;

/**
 * Interface for a version target of some kind of upgrade.
 *
 * @author mpolden
 */
public interface VersionTarget {

    /** The version of this target */
    Version version();

    /** Returns whether this target is potentially a downgrade */
    boolean downgrade();

}