blob: 792f167a6f862fdf17da64fa404c456310755fa2 [file] [log] [blame]
kushdfa86f482017-08-03 01:59:53 +02001// Copyright 2017 The Bazel Authors. All rights reserved.
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14package com.google.devtools.build.skyframe;
15
16/** Use when only a single evaluation of the graph with a single constant version is expected. */
17public class ConstantVersion implements Version {
18 public static final ConstantVersion INSTANCE = new ConstantVersion();
19
20 private ConstantVersion() {}
21
22 @Override
23 public boolean atMost(Version other) {
24 return this.equals(other);
25 }
26}