Package io.sf.carte.doc
Class WrapperStringList
java.lang.Object
io.sf.carte.doc.WrapperStringList
- All Implemented Interfaces:
- StringList,- Serializable,- Iterable<String>,- Collection<String>,- List<String>,- DOMStringList
An unmodifiable 
StringList that wraps a Collection.- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.
- 
Method SummaryModifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection<? extends String> c) booleanaddAll(Collection<? extends String> c) voidclear()booleanbooleanbooleancontainsAll(Collection<?> c) get(int index) intintbooleanisEmpty()item(int index) iterator()intlistIterator(int index) remove(int index) booleanbooleanremoveAll(Collection<?> c) voidreplaceAll(UnaryOperator<String> operator) booleanretainAll(Collection<?> c) intsize()voidsort(Comparator<? super String> c) subList(int fromIndex, int toIndex) Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.CollectionparallelStream, removeIf, stream, toArray
- 
Constructor Details- 
WrapperStringListConstructs a list containing the elements of the specified collection, in the order they are returned by the collection's iterator.- Parameters:
- c- the collection whose elements are to be wrapped by this list.
- Throws:
- NullPointerException- if the specified collection is- null.
 
 
- 
- 
Method Details- 
item- Specified by:
- itemin interface- DOMStringList
 
- 
getLengthpublic int getLength()- Specified by:
- getLengthin interface- DOMStringList
 
- 
contains- Specified by:
- containsin interface- DOMStringList
 
- 
sizepublic int size()
- 
isEmptypublic boolean isEmpty()
- 
contains
- 
iterator
- 
toArray
- 
toArraypublic <T> T[] toArray(T[] a) 
- 
add
- 
remove
- 
containsAll- Specified by:
- containsAllin interface- Collection<String>
- Specified by:
- containsAllin interface- List<String>
 
- 
addAll
- 
addAll
- 
removeAll
- 
retainAll
- 
replaceAll- Specified by:
- replaceAllin interface- List<String>
 
- 
sort
- 
clearpublic void clear()
- 
get
- 
set
- 
add
- 
remove
- 
indexOf
- 
lastIndexOf- Specified by:
- lastIndexOfin interface- List<String>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<String>
 
- 
listIterator- Specified by:
- listIteratorin interface- List<String>
 
- 
subList
- 
spliterator- Specified by:
- spliteratorin interface- Collection<String>
- Specified by:
- spliteratorin interface- Iterable<String>
- Specified by:
- spliteratorin interface- List<String>
 
 
-