Package de.tudresden.sumo.objects
Class SumoStringList
- java.lang.Object
-
- de.tudresden.sumo.objects.SumoStringList
-
- All Implemented Interfaces:
SumoObject,Serializable,Iterable<String>,Collection<String>,List<String>
public class SumoStringList extends Object implements List<String>, Serializable, SumoObject
- Author:
- Mario Krumnow
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SumoStringList()SumoStringList(List<String> list)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, String element)booleanadd(String element)booleanaddAll(int index, Collection<? extends String> elements)booleanaddAll(Collection<? extends String> elements)voidclear()booleancontains(Object element)booleancontainsAll(Collection<?> elements)Stringget(int index)intindexOf(Object element)booleanisEmpty()Iterator<String>iterator()intlastIndexOf(Object element)ListIterator<String>listIterator()ListIterator<String>listIterator(int index)Stringremove(int index)booleanremove(Object element)booleanremoveAll(Collection<?> elements)booleanretainAll(Collection<?> elements)Stringset(int index, String element)intsize()List<String>subList(int from, int to)Object[]toArray()<T> T[]toArray(T[] element)StringtoString()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
Methods inherited from interface java.util.List
equals, hashCode, replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
addAll
public boolean addAll(Collection<? extends String> elements)
-
addAll
public boolean addAll(int index, Collection<? extends String> elements)
-
clear
public void clear()
-
contains
public boolean contains(Object element)
-
containsAll
public boolean containsAll(Collection<?> elements)
- Specified by:
containsAllin interfaceCollection<String>- Specified by:
containsAllin interfaceList<String>
-
isEmpty
public boolean isEmpty()
-
lastIndexOf
public int lastIndexOf(Object element)
- Specified by:
lastIndexOfin interfaceList<String>
-
listIterator
public ListIterator<String> listIterator()
- Specified by:
listIteratorin interfaceList<String>
-
listIterator
public ListIterator<String> listIterator(int index)
- Specified by:
listIteratorin interfaceList<String>
-
remove
public boolean remove(Object element)
-
removeAll
public boolean removeAll(Collection<?> elements)
-
retainAll
public boolean retainAll(Collection<?> elements)
-
size
public int size()
-
toArray
public Object[] toArray()
-
toArray
public <T> T[] toArray(T[] element)
-
add
public boolean add(String element)
-
-