// Path: omegarecyclerview/src/main/java/com/omega_r/libs/omegarecyclerview/item_decoration/decoration_helpers/DividerDecorationHelper.java
// @SuppressWarnings("StaticInitializerReferencesSubClass")
// public abstract class DividerDecorationHelper {
// 
//     DividerDecorationHelper() {
//         // nothing
//     }
// 
//     private static final NormalVerticalDividerDecorationHelper sNormalVerticalDividerDecorationHelper = new NormalVerticalDividerDecorationHelper();
//     private static final ReverseVerticalDividerDecorationHelper sReverseVerticalDividerDecorationHelper = new ReverseVerticalDividerDecorationHelper();
//     private static final NormalHorizontalDividerDecorationHelper sNormalHorizontalDividerDecorationHelper = new NormalHorizontalDividerDecorationHelper();
//     private static final ReverseHorizontalDividerDecorationHelper sReverseHorizontalDividerDecorationHelper = new ReverseHorizontalDividerDecorationHelper();
// 
//     @NonNull
//     public static DividerDecorationHelper getHelper(int orientation, RecyclerView parent) {
//         if (!(parent.getLayoutManager() instanceof LinearLayoutManager)) {
//             return sNormalVerticalDividerDecorationHelper;
//         }
//         LinearLayoutManager layoutManager = (LinearLayoutManager) parent.getLayoutManager();
//         boolean isReversed = layoutManager.getReverseLayout();
// 
//         switch (orientation) {
//             default:
//             case Orientation.VERTICAL:
//                 if (isReversed) return sReverseVerticalDividerDecorationHelper;
//                 return sNormalVerticalDividerDecorationHelper;
//             case Orientation.HORIZONTAL:
//                 if (isReversed) return sReverseHorizontalDividerDecorationHelper;
//                 return sNormalHorizontalDividerDecorationHelper;
//         }
//     }
// 
//     public abstract void setStart(Rect rect, int start);
// 
//     public abstract void setEnd(Rect rect, int end);
// 
//     public abstract int getStart(Rect rect);
// 
//     public abstract int getEnd(Rect rect);
// 
//     public abstract void setOtherStart(Rect rect, int start);
// 
//     public abstract void setOtherEnd(Rect rect, int end);
// 
//     public abstract int getOtherStart(Rect rect);
// 
//     public abstract int getOtherEnd(Rect rect);
// 
//     public int getOffset(int offset) {
//         return offset;
//     }
// 
// }


import android.graphics.Rect;
import com.omega_r.libs.omegarecyclerview.item_decoration.decoration_helpers.DividerDecorationHelper;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
package com.omega_r.libs.omegarecyclerview.item_decoration;




public class BaseSpaceItemDecoration extends BaseItemDecoration {

    private final int mItemSpace;

    public BaseSpaceItemDecoration(int showDivider, int space) {
        super(showDivider);
        mItemSpace = space;
    }

    @Override
    void getItemOffset(@NonNull Rect outRect, @NonNull RecyclerView parent,
// Path: omegarecyclerview/src/main/java/com/omega_r/libs/omegarecyclerview/item_decoration/decoration_helpers/DividerDecorationHelper.java
// @SuppressWarnings("StaticInitializerReferencesSubClass")
// public abstract class DividerDecorationHelper {
// 
//     DividerDecorationHelper() {
//         // nothing
//     }
// 
//     private static final NormalVerticalDividerDecorationHelper sNormalVerticalDividerDecorationHelper = new NormalVerticalDividerDecorationHelper();
//     private static final ReverseVerticalDividerDecorationHelper sReverseVerticalDividerDecorationHelper = new ReverseVerticalDividerDecorationHelper();
//     private static final NormalHorizontalDividerDecorationHelper sNormalHorizontalDividerDecorationHelper = new NormalHorizontalDividerDecorationHelper();
//     private static final ReverseHorizontalDividerDecorationHelper sReverseHorizontalDividerDecorationHelper = new ReverseHorizontalDividerDecorationHelper();
// 
//     @NonNull
//     public static DividerDecorationHelper getHelper(int orientation, RecyclerView parent) {
//         if (!(parent.getLayoutManager() instanceof LinearLayoutManager)) {
//             return sNormalVerticalDividerDecorationHelper;
//         }
//         LinearLayoutManager layoutManager = (LinearLayoutManager) parent.getLayoutManager();
//         boolean isReversed = layoutManager.getReverseLayout();
// 
//         switch (orientation) {
//             default:
//             case Orientation.VERTICAL:
//                 if (isReversed) return sReverseVerticalDividerDecorationHelper;
//                 return sNormalVerticalDividerDecorationHelper;
//             case Orientation.HORIZONTAL:
//                 if (isReversed) return sReverseHorizontalDividerDecorationHelper;
//                 return sNormalHorizontalDividerDecorationHelper;
//         }
//     }
// 
//     public abstract void setStart(Rect rect, int start);
// 
//     public abstract void setEnd(Rect rect, int end);
// 
//     public abstract int getStart(Rect rect);
// 
//     public abstract int getEnd(Rect rect);
// 
//     public abstract void setOtherStart(Rect rect, int start);
// 
//     public abstract void setOtherEnd(Rect rect, int end);
// 
//     public abstract int getOtherStart(Rect rect);
// 
//     public abstract int getOtherEnd(Rect rect);
// 
//     public int getOffset(int offset) {
//         return offset;
//     }
// 
// }


// Path: omegarecyclerview/src/main/java/com/omega_r/libs/omegarecyclerview/item_decoration/BaseSpaceItemDecoration.java
import android.graphics.Rect;
import com.omega_r.libs.omegarecyclerview.item_decoration.decoration_helpers.DividerDecorationHelper;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

package com.omega_r.libs.omegarecyclerview.item_decoration;




public class BaseSpaceItemDecoration extends BaseItemDecoration {

    private final int mItemSpace;

    public BaseSpaceItemDecoration(int showDivider, int space) {
        super(showDivider);
        mItemSpace = space;
    }

    @Override
    void getItemOffset(@NonNull Rect outRect, @NonNull RecyclerView parent,
                       @NonNull DividerDecorationHelper helper, int position, int itemCount) {