Class CharArrayList.SubList
- All Implemented Interfaces:
CharCollection,CharIterable,CharList,CharStack,Stack<Character>,Serializable,Comparable<List<? extends Character>>,Iterable<Character>,Collection<Character>,List<Character>,RandomAccess,SequencedCollection<Character>
- Enclosing class:
CharArrayList
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.chars.AbstractCharList
AbstractCharList.CharRandomAccessSubList, AbstractCharList.CharSubList -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompares this list to another object.booleanchargetChar(int i) Returns the element at the specified position in this list.listIterator(int index) Returns a type-specific list iterator on the list starting at a given index.Returns a type-specific spliterator on the elements of this collection.Methods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharList.CharRandomAccessSubList
subListMethods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharList.CharSubList
add, add, addAll, addAll, addAll, addElements, getElements, rem, removeChar, removeElements, set, setElements, sizeMethods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharList
addAll, addAll, addElements, clear, contains, forEach, hashCode, indexOf, iterator, lastIndexOf, listIterator, peekChar, popChar, push, size, toArray, toCharArray, topChar, toStringMethods inherited from class it.unimi.dsi.fastutil.chars.AbstractCharCollection
add, contains, containsAll, containsAll, remove, removeAll, removeAll, retainAll, retainAll, toCharArrayMethods inherited from class java.util.AbstractCollection
isEmpty, toArray, toArrayMethods inherited from interface it.unimi.dsi.fastutil.chars.CharCollection
containsAll, intIterator, intParallelStream, intSpliterator, intStream, parallelStream, removeAll, removeIf, removeIf, removeIf, retainAll, stream, toCharArrayMethods inherited from interface it.unimi.dsi.fastutil.chars.CharIterable
forEach, forEachMethods inherited from interface it.unimi.dsi.fastutil.chars.CharList
add, add, addAll, contains, get, indexOf, lastIndexOf, remove, remove, replaceAll, replaceAll, replaceAll, set, setElements, setElements, sort, sort, unstableSort, unstableSortMethods inherited from interface java.util.Collection
toArrayMethods inherited from interface java.util.List
addFirst, addLast, containsAll, getFirst, getLast, isEmpty, removeAll, removeFirst, removeLast, retainAll, reversed, toArray, toArray
-
Constructor Details
-
SubList
public SubList(int from, int to)
-
-
Method Details
-
getChar
public char getChar(int i) Description copied from interface:CharListReturns the element at the specified position in this list.- Specified by:
getCharin interfaceCharList- Overrides:
getCharin classAbstractCharList.CharSubList- See Also:
-
listIterator
Description copied from class:AbstractCharListReturns a type-specific list iterator on the list starting at a given index.- Specified by:
listIteratorin interfaceCharList- Specified by:
listIteratorin interfaceList<Character>- Overrides:
listIteratorin classAbstractCharList.CharSubList- See Also:
-
spliterator
Description copied from interface:CharCollectionReturns a type-specific spliterator on the elements of this collection.See
Collection.spliterator()for more documentation on the requirements of the returned spliterator.- Specified by:
spliteratorin interfaceCharCollection- Specified by:
spliteratorin interfaceCharIterable- Specified by:
spliteratorin interfaceCharList- Specified by:
spliteratorin interfaceCollection<Character>- Specified by:
spliteratorin interfaceIterable<Character>- Specified by:
spliteratorin interfaceList<Character>- Overrides:
spliteratorin classAbstractCharList.CharSubList- Returns:
- a type-specific spliterator on the elements of this collection.
-
equals
- Specified by:
equalsin interfaceCollection<Character>- Specified by:
equalsin interfaceList<Character>- Overrides:
equalsin classAbstractCharList
-
compareTo
Description copied from class:AbstractCharListCompares this list to another object. If the argument is aList, this method performs a lexicographical comparison; otherwise, it throws aClassCastException.- Specified by:
compareToin interfaceComparable<List<? extends Character>>- Overrides:
compareToin classAbstractCharList- Parameters:
l- a list.- Returns:
- if the argument is a
List, a negative integer, zero, or a positive integer as this list is lexicographically less than, equal to, or greater than the argument.
-