blob: d1636c511d69c3467c177387a13598ecb297f780 [file] [log] [blame]
// Copyright (c) 2020, the R8 project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
package com.android.tools.r8.utils;
import java.util.function.Consumer;
public interface ChainableStringConsumer extends ChainableConsumer<String> {
@Override
ChainableStringConsumer accept(String string);
static ChainableStringConsumer wrap(Consumer<String> consumer) {
return new ChainableStringConsumer() {
@Override
public ChainableStringConsumer accept(String value) {
consumer.accept(value);
return this;
}
};
}
}