| // Copyright (c) 2022, 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.retrace.internal; |
| import com.android.tools.r8.retrace.ResultWithContext; |
| import com.android.tools.r8.retrace.RetraceStackTraceContext; |
| import java.util.function.Consumer; |
| public class ResultWithContextImpl<T> implements ResultWithContext<T> { |
| private final List<T> result; |
| private final RetraceStackTraceContext context; |
| private ResultWithContextImpl(List<T> result, RetraceStackTraceContext context) { |
| public static <T> ResultWithContext<T> create(List<T> result, RetraceStackTraceContext context) { |
| return new ResultWithContextImpl<>(result, context); |
| public RetraceStackTraceContext getContext() { |
| public List<T> getLines() { |
| public void forEach(Consumer<T> consumer) { |
| result.forEach(consumer); |
| public boolean isEmpty() { |