recycleadapter/src/main/java/com/kevadiyakrunalk/recycleadapter/swipeable/RecyclerViewSwipeManager.java
@SuppressWarnings("unchecked")
    public RecyclerView.Adapter createWrappedAdapter(@NonNull RecyclerView.Adapter adapter) {
        if (!adapter.hasStableIds()) {
            throw new IllegalArgumentException("The passed adapter does not support stable IDs");
        }

        if (mWrapperAdapter != null) {
            throw new IllegalStateException("already have a wrapped adapter");
        }

        mWrapperAdapter = new SwipeableItemWrapperAdapter(this, adapter);

        return mWrapperAdapter;
    }
/**
     * Create wrapped adapter.
     *
     * @param adapter The target adapter.
     * @return Wrapped adapter which is associated to this {@link RecyclerViewSwipeManager} instance.
     */
Create wrapped adapter.
@param adapter The target adapter.
@return Wrapped adapter which is associated to this  RecyclerViewSwipeManager instance.
Create wrapped adapter . @param adapter The target adapter . @return Wrapped adapter which is associated to this RecyclerViewSwipeManager instance .
@SuppressWarnings("unchecked")
    public RecyclerView.Adapter createWrappedAdapter(@NonNull RecyclerView.Adapter adapter) {
        if (!adapter.hasStableIds()) {
            throw new IllegalArgumentException("The passed adapter does not support stable IDs");
        }
        if (mWrapperAdapter != null) {
            throw new IllegalStateException("already have a wrapped adapter");
        }
        mWrapperAdapter = new SwipeableItemWrapperAdapter(this, adapter);
        return mWrapperAdapter;
    }
@ SuppressWarnings ( "unchecked" ) public RecyclerView . Adapter createWrappedAdapter ( @ NonNull RecyclerView . Adapter adapter ) { if ( ! adapter . hasStableIds ( ) ) { throw new IllegalArgumentException ( "The passed adapter does not support stable IDs" ) ; } if ( mWrapperAdapter != null ) { throw new IllegalStateException ( "already have a wrapped adapter" ) ; } mWrapperAdapter = new SwipeableItemWrapperAdapter ( this , adapter ) ; return mWrapperAdapter ; }
Create wrapped adapter.
Create wrapped adapter .