Package software.amazon.awssdk.core.util
Class DefaultSdkAutoConstructList<T>
- java.lang.Object
-
- software.amazon.awssdk.core.util.DefaultSdkAutoConstructList<T>
-
- Type Parameters:
T- The element type.
- All Implemented Interfaces:
Serializable,Iterable<T>,Collection<T>,List<T>,SdkAutoConstructList<T>
public final class DefaultSdkAutoConstructList<T> extends Object implements SdkAutoConstructList<T>, Serializable
Default implementation ofSdkAutoConstructList.This is an empty, unmodifiable list.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, T element)booleanadd(T t)booleanaddAll(int index, Collection<? extends T> c)booleanaddAll(Collection<? extends T> c)voidclear()booleancontains(Object o)booleancontainsAll(Collection<?> c)booleanequals(Object o)Tget(int index)static <T> DefaultSdkAutoConstructList<T>getInstance()inthashCode()intindexOf(Object o)booleanisEmpty()Iterator<T>iterator()intlastIndexOf(Object o)ListIterator<T>listIterator()ListIterator<T>listIterator(int index)Tremove(int index)booleanremove(Object o)booleanremoveAll(Collection<?> c)booleanretainAll(Collection<?> c)Tset(int index, T element)intsize()List<T>subList(int fromIndex, int toIndex)Object[]toArray()<T1> T1[]toArray(T1[] a)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream
-
Methods inherited from interface java.util.List
replaceAll, sort, spliterator
-
-
-
-
Method Detail
-
getInstance
public static <T> DefaultSdkAutoConstructList<T> getInstance()
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(Object o)
-
toArray
public Object[] toArray()
-
toArray
public <T1> T1[] toArray(T1[] a)
-
add
public boolean add(T t)
-
remove
public boolean remove(Object o)
-
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceList<T>
-
addAll
public boolean addAll(Collection<? extends T> c)
-
addAll
public boolean addAll(int index, Collection<? extends T> c)
-
removeAll
public boolean removeAll(Collection<?> c)
-
retainAll
public boolean retainAll(Collection<?> c)
-
clear
public void clear()
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOfin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator()
- Specified by:
listIteratorin interfaceList<T>
-
listIterator
public ListIterator<T> listIterator(int index)
- Specified by:
listIteratorin interfaceList<T>
-
equals
public boolean equals(Object o)
-
hashCode
public int hashCode()
-
-