@throws ClassCastException {@inheritDoc}
@throws NullPointerException if {@code fromElement} or
{@code toElement} is null and this set uses natural ordering,
or its comparator does not permit null elements
@throws IllegalArgumentException {@inheritDoc}
@throws ClassCastException {@inheritDoc} @throws NullPointerException if {@code fromElement} or {@code toElement} is null and this set uses natural ordering, or its comparator does not permit null elements @throws IllegalArgumentException {@inheritDoc}