Package com.azure.data.cosmos
Class SqlParameterList
- java.lang.Object
-
- com.azure.data.cosmos.SqlParameterList
-
- All Implemented Interfaces:
Iterable<SqlParameter>
,Collection<SqlParameter>
,List<SqlParameter>
public final class SqlParameterList extends Object implements List<SqlParameter>
Represents a collection of SQL parameters to for a SQL query in the Azure Cosmos DB database service.
-
-
Constructor Summary
Constructors Constructor Description SqlParameterList()
Initializes a new instance of the SqlParameterList class.SqlParameterList(SqlParameter... parameters)
Initializes a new instance of the SqlParameterList class from an array of parameters.SqlParameterList(Collection<SqlParameter> parameters)
Initializes a new instance of the SqlParameterList class from a collection of parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int index, SqlParameter element)
boolean
add(SqlParameter parameter)
boolean
addAll(int index, Collection<? extends SqlParameter> c)
boolean
addAll(Collection<? extends SqlParameter> parameters)
void
clear()
boolean
contains(Object parameter)
boolean
containsAll(Collection<?> parameters)
SqlParameter
get(int index)
int
indexOf(Object o)
boolean
isEmpty()
Iterator<SqlParameter>
iterator()
int
lastIndexOf(Object o)
ListIterator<SqlParameter>
listIterator()
ListIterator<SqlParameter>
listIterator(int index)
SqlParameter
remove(int index)
boolean
remove(Object parameter)
boolean
removeAll(Collection<?> parameters)
boolean
retainAll(Collection<?> parameters)
SqlParameter
set(int index, SqlParameter element)
int
size()
List<SqlParameter>
subList(int fromIndex, int toIndex)
Object[]
toArray()
<T> T[]
toArray(T[] parameters)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, 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
-
-
-
-
Constructor Detail
-
SqlParameterList
public SqlParameterList()
Initializes a new instance of the SqlParameterList class.
-
SqlParameterList
public SqlParameterList(SqlParameter... parameters)
Initializes a new instance of the SqlParameterList class from an array of parameters.- Parameters:
parameters
- the array of parameters.
-
SqlParameterList
public SqlParameterList(Collection<SqlParameter> parameters)
Initializes a new instance of the SqlParameterList class from a collection of parameters.- Parameters:
parameters
- the collection of parameters.
-
-
Method Detail
-
add
public boolean add(SqlParameter parameter)
- Specified by:
add
in interfaceCollection<SqlParameter>
- Specified by:
add
in interfaceList<SqlParameter>
-
addAll
public boolean addAll(Collection<? extends SqlParameter> parameters)
- Specified by:
addAll
in interfaceCollection<SqlParameter>
- Specified by:
addAll
in interfaceList<SqlParameter>
-
addAll
public boolean addAll(int index, Collection<? extends SqlParameter> c)
- Specified by:
addAll
in interfaceList<SqlParameter>
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<SqlParameter>
- Specified by:
clear
in interfaceList<SqlParameter>
-
get
public SqlParameter get(int index)
- Specified by:
get
in interfaceList<SqlParameter>
-
set
public SqlParameter set(int index, SqlParameter element)
- Specified by:
set
in interfaceList<SqlParameter>
-
add
public void add(int index, SqlParameter element)
- Specified by:
add
in interfaceList<SqlParameter>
-
remove
public SqlParameter remove(int index)
- Specified by:
remove
in interfaceList<SqlParameter>
-
indexOf
public int indexOf(Object o)
- Specified by:
indexOf
in interfaceList<SqlParameter>
-
lastIndexOf
public int lastIndexOf(Object o)
- Specified by:
lastIndexOf
in interfaceList<SqlParameter>
-
listIterator
public ListIterator<SqlParameter> listIterator()
- Specified by:
listIterator
in interfaceList<SqlParameter>
-
listIterator
public ListIterator<SqlParameter> listIterator(int index)
- Specified by:
listIterator
in interfaceList<SqlParameter>
-
subList
public List<SqlParameter> subList(int fromIndex, int toIndex)
- Specified by:
subList
in interfaceList<SqlParameter>
-
contains
public boolean contains(Object parameter)
- Specified by:
contains
in interfaceCollection<SqlParameter>
- Specified by:
contains
in interfaceList<SqlParameter>
-
containsAll
public boolean containsAll(Collection<?> parameters)
- Specified by:
containsAll
in interfaceCollection<SqlParameter>
- Specified by:
containsAll
in interfaceList<SqlParameter>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfaceCollection<SqlParameter>
- Specified by:
isEmpty
in interfaceList<SqlParameter>
-
iterator
public Iterator<SqlParameter> iterator()
- Specified by:
iterator
in interfaceCollection<SqlParameter>
- Specified by:
iterator
in interfaceIterable<SqlParameter>
- Specified by:
iterator
in interfaceList<SqlParameter>
-
remove
public boolean remove(Object parameter)
- Specified by:
remove
in interfaceCollection<SqlParameter>
- Specified by:
remove
in interfaceList<SqlParameter>
-
removeAll
public boolean removeAll(Collection<?> parameters)
- Specified by:
removeAll
in interfaceCollection<SqlParameter>
- Specified by:
removeAll
in interfaceList<SqlParameter>
-
retainAll
public boolean retainAll(Collection<?> parameters)
- Specified by:
retainAll
in interfaceCollection<SqlParameter>
- Specified by:
retainAll
in interfaceList<SqlParameter>
-
size
public int size()
- Specified by:
size
in interfaceCollection<SqlParameter>
- Specified by:
size
in interfaceList<SqlParameter>
-
toArray
public Object[] toArray()
- Specified by:
toArray
in interfaceCollection<SqlParameter>
- Specified by:
toArray
in interfaceList<SqlParameter>
-
toArray
public <T> T[] toArray(T[] parameters)
- Specified by:
toArray
in interfaceCollection<SqlParameter>
- Specified by:
toArray
in interfaceList<SqlParameter>
-
-