@Override
    public void notifyStateChangedFromLoaded(final int previousContentItemsCount) {
        if (previousContentItemsCount < 0) {
            throw new IllegalArgumentException("previousContentItemsCount cannot have a negative value");
        }

        final Section.State state = section.getState();
        if (state == Section.State.LOADED) {
            throw new IllegalStateException("Use notifyStateChangedToLoaded");
        }

        if (previousContentItemsCount == 0) {
            notifyItemInserted(0);
        } else {
            if (previousContentItemsCount > 1) {
                notifyItemRangeRemoved(1, previousContentItemsCount - 1);
            }

            notifyItemChanged(0);
        }
    }
This class represents a {@link Section Section} in the {@link SectionedRecyclerViewAdapter SectionedRecyclerViewAdapter}.
<p>
It provides helper methods for:
<ul>
<li>identifying position of this {@link Section Section}'s items in the {@link SectionedRecyclerViewAdapter SectionedRecyclerViewAdapter}</li>
<li>identifying position of the {@link SectionedRecyclerViewAdapter SectionedRecyclerViewAdapter} in this {@link Section Section}</li>
<li>notifying {@link SectionedRecyclerViewAdapter SectionedRecyclerViewAdapter} of item changes in this Section</li>
</ul>
library/src/main/java/io/github/luizgrp/sectionedrecyclerviewadapter/SectionAdapter.java