public class

UnwrapPositionResult

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

Class Overview

The result object of unwrapPosition(UnwrapPositionResult, int). This class is mutable that is why it is intended to reuse the same instance multiple times to avoid object creations.

Summary

Fields
public Adapter adapter Adapter
public int position Unwrapped position
public Object tag Tag object

The tag object can be used to identify the path.

Public Constructors
UnwrapPositionResult()
Public Methods
void clear()
Clear fields
boolean isValid()
Returns the result is valid.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public Adapter adapter

Adapter

public int position

Unwrapped position

public Object tag

Tag object

The tag object can be used to identify the path. (e.g.: wrapper adapter can use a same child adapter multiple times)

Public Constructors

public UnwrapPositionResult ()

Public Methods

public void clear ()

Clear fields

public boolean isValid ()

Returns the result is valid.

Returns
  • True if the result object indicates valid position. Otherwise, false.