blob: 7883265175f58bc1ec4a25745d0819188a555d86 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package io.v.baku.toolkit.bind;
import android.view.View;
import android.view.ViewGroup;
import java8.util.function.Function;
public interface ViewAdapter<T, VH extends ViewHolder> {
View createView(ViewGroup parent);
VH createViewHolder(View view);
void bindViewHolder(VH viewHolder, int position, T value);
void bindView(View view, int position, T value);
<U> ViewAdapter<U, VH> map(final Function<U, ? extends T> fn);
}