private int getNumberOfItems() {
    return layoutManager.getItemCount();
  }
Returns the position adjacent to the provided one in a specific direction.
dividers/src/main/java/com/karumi/dividers/PositionAdapter.java