Fixed invalid package declarations, fixed a doc typo, back to JDK 1.8.

This commit is contained in:
Rodion Efremov 2022-07-13 16:41:59 +03:00
parent 20971366c8
commit a1fe76ee50
3 changed files with 13 additions and 14 deletions

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.coderodde.util;
package org.apache.commons.collections4.list;
import java.lang.reflect.Array;
import java.util.Arrays;
@ -68,11 +68,7 @@ import java.util.function.UnaryOperator;
*
* The rest is to <i>"rewind"</i> the closest finger to point to the target
* element (which requires \(\mathcal{O}(\sqrt{n})\) on evenly distributed
* finger lis).
*
* @author Rodion "rodde" Efremov
* @version 1.61 (Sep 26, 2021)
* @since 1.6 (Sep 1, 2021)
* finger lists).
*/
public class IndexedLinkedList<E> implements Deque<E>,
List<E>,
@ -2996,13 +2992,15 @@ public class IndexedLinkedList<E> implements Deque<E>,
@Override
public boolean hasCharacteristics(int characteristics) {
return switch (characteristics) {
case Spliterator.ORDERED,
Spliterator.SIZED,
Spliterator.SUBSIZED -> true;
switch (characteristics) {
case Spliterator.ORDERED:
case Spliterator.SIZED:
case Spliterator.SUBSIZED:
return true;
default -> false;
};
default:
return false;
}
}
}

View File

@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.coderodde.util;
package org.apache.commons.collections4.list;
import com.github.coderodde.util.IndexedLinkedList.Finger;
import com.github.coderodde.util.IndexedLinkedList.Node;

View File

@ -14,7 +14,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.github.coderodde.util;
package org.apache.commons.collections4.list;
import com.github.coderodde.util.IndexedLinkedList.BasicIterator;
import com.github.coderodde.util.IndexedLinkedList.EnhancedIterator;