private boolean hasEndDividerAfterFlexLine(int flexLineIndex){
  if (flexLineIndex < 0 || flexLineIndex >= mFlexLines.size()) {
    return false;
  }
  for (int i=flexLineIndex + 1; i < mFlexLines.size(); i++) {
    if (mFlexLines.get(i).mItemCount > 0) {
      return false;
    }
  }
  if (isMainAxisDirectionHorizontal(mFlexDirection)) {
    return (mShowDividerHorizontal & SHOW_DIVIDER_END) != 0;
  }
 else {
    return (mShowDividerVertical & SHOW_DIVIDER_END) != 0;
  }
}

private boolean hasEndDividerAfterFlexLine ( int flexLineIndex ) { if ( flexLineIndex < 0 || flexLineIndex >= mFlexLines . size ( ) ) { return false ; } for ( int i = flexLineIndex + 1 ; i < mFlexLines . size ( ) ; i ++ ) { if ( mFlexLines . get ( i ) . mItemCount > 0 ) { return false ; } } if ( isMainAxisDirectionHorizontal ( mFlexDirection ) ) { return ( mShowDividerHorizontal & SHOW_DIVIDER_END ) != 0 ; } else { return ( mShowDividerVertical & SHOW_DIVIDER_END ) != 0 ; } }
check if a end divider is needed after the flex line whose index is passed as an argument .
