blob: 809dd6b5ba2eeed46d5e6e5e12654255c496cb72 [file]
// 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.internal;
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;
}
};
}
}