public class

AdapterPath

extends Object
java.lang.Object
   ↳ com.h6ah4i.android.widget.advrecyclerview.adapter.AdapterPath

Class Overview

Adapter path. This class represents how nested WrapperAdapters route items.

Summary

Public Constructors
AdapterPath()
Constructor.
Public Methods
AdapterPath append(Adapter adapter, Object tag)
Appends path segment.
AdapterPath append(UnwrapPositionResult wrapResult)
Appends path segment.
AdapterPath append(AdapterPathSegment segment)
Appends path segment.
AdapterPath clear()
Clears path segments.
AdapterPathSegment firstSegment()
Retrieves the first path segment.
boolean isEmpty()
Gets whether the path is empty.
AdapterPathSegment lastSegment()
Retrieves the last path segment.
List<AdapterPathSegment> segments()
Gets path segments.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AdapterPath ()

Constructor.

Public Methods

public AdapterPath append (Adapter adapter, Object tag)

Appends path segment.

Parameters
adapter The adapter
tag The tag object
Returns

public AdapterPath append (UnwrapPositionResult wrapResult)

Appends path segment.

Parameters
wrapResult The result object returned by wrapPosition(AdapterPathSegment, int).
Returns

public AdapterPath append (AdapterPathSegment segment)

Appends path segment.

Parameters
segment The path segment
Returns

public AdapterPath clear ()

Clears path segments.

Returns

public AdapterPathSegment firstSegment ()

Retrieves the first path segment.

Returns
  • The first path segment.

public boolean isEmpty ()

Gets whether the path is empty.

Returns
  • True if the path is empty. Otherwise, false.

public AdapterPathSegment lastSegment ()

Retrieves the last path segment.

Returns
  • THe last path segment.

public List<AdapterPathSegment> segments ()

Gets path segments.

Returns
  • The collection of path segments.