public interface

WrapperAdapter

implements WrappedAdapter<VH extends RecyclerView.ViewHolder>
com.h6ah4i.android.widget.advrecyclerview.adapter.WrapperAdapter<VH extends android.support.v7.widget.RecyclerView.ViewHolder>
Known Indirect Subclasses

Class Overview

An RecyclerView adapter which wraps another adapter(s).

Summary

Public Methods
abstract void getWrappedAdapters(List<Adapter> adapters)
Gets wrapped children adapters.
abstract void release()
Releases bounded resources.
abstract void unwrapPosition(UnwrapPositionResult dest, int position)
Unwraps position.
abstract int wrapPosition(AdapterPathSegment pathSegment, int position)
Wraps position.
[Expand]
Inherited Methods
From interface com.h6ah4i.android.widget.advrecyclerview.adapter.WrappedAdapter

Public Methods

public abstract void getWrappedAdapters (List<Adapter> adapters)

Gets wrapped children adapters.

Parameters
adapters The destination

public abstract void release ()

Releases bounded resources.

public abstract void unwrapPosition (UnwrapPositionResult dest, int position)

Unwraps position. This method converts the passed wrapped position to child adapter's position.

Parameters
dest The destination
position The wrapped position to be unwrapped

public abstract int wrapPosition (AdapterPathSegment pathSegment, int position)

Wraps position. This method converts the passed child adapter's position to wrapped position.

Parameters
pathSegment The path segment of the child adapter
position The child adapter's position to be wrapped
Returns
  • Wrapped position