E
- the scalar type.public abstract class ScalarCollection<E> extends PgxCollection<E,java.lang.Void>
Modifier and Type | Method and Description |
---|---|
void |
addAll(PgxEntity[] elements)
Adds elements of a
PgxEntity array to this collection. |
void |
addAll(java.lang.Void... voids) |
PgxFuture<java.lang.Void> |
addAllAsync(java.util.Collection<E> source) |
void |
addAllElements(ScalarCollection source) |
PgxFuture<java.lang.Void> |
addAllElementsAsync(java.util.Collection<E> source)
Adds elements to an existing collection.
|
PgxFuture<java.lang.Boolean> |
containsAsync(E element)
Returns
true if this collection contains the specified element. |
IdType |
getIdType()
Gets the ID type of the element type.
|
void |
removeAll(java.lang.Void... voids) |
PgxFuture<java.lang.Void> |
removeAllAsync(java.util.Collection<E> source) |
void |
removeAllElements(ScalarCollection source) |
PgxFuture<java.lang.Void> |
removeAllElementsAsync(java.util.Collection<E> source)
Removes elements from an existing collection.
|
java.lang.String |
toString()
(non-Javadoc)
|
add, addAll, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, getCollectionType, getContentType, getGraph, getId, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAll, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync
equals, hashCode
close, destroy, destroyAsync
public void addAll(PgxEntity[] elements)
PgxCollection
PgxEntity
array to this collection.addAll
in class PgxCollection<E,java.lang.Void>
elements
- the PgxEntity
array containing the elements to addpublic void addAll(java.lang.Void... voids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
addAll
in class PgxCollection<E,java.lang.Void>
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public final PgxFuture<java.lang.Void> addAllAsync(java.util.Collection<E> source)
addAllAsync
in class PgxCollection<E,java.lang.Void>
source
- elements to addpublic void addAllElements(ScalarCollection source)
public final PgxFuture<java.lang.Void> addAllElementsAsync(java.util.Collection<E> source)
PgxCollection
PgxCollection.addAllAsync(Collection)
.addAllElementsAsync
in class PgxCollection<E,java.lang.Void>
source
- elements to addpublic final PgxFuture<java.lang.Boolean> containsAsync(E element)
PgxCollection
true
if this collection contains the specified element.containsAsync
in class PgxCollection<E,java.lang.Void>
element
- element whose presence in this collection is to be testedtrue
if this collection contains the specified
elementpublic IdType getIdType()
PgxCollection
getIdType
in class PgxCollection<E,java.lang.Void>
public void removeAll(java.lang.Void... voids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
removeAll
in class PgxCollection<E,java.lang.Void>
java.util.concurrent.ExecutionException
java.lang.InterruptedException
public final PgxFuture<java.lang.Void> removeAllAsync(java.util.Collection<E> source)
removeAllAsync
in class PgxCollection<E,java.lang.Void>
source
- elements to removepublic void removeAllElements(ScalarCollection source)
public final PgxFuture<java.lang.Void> removeAllElementsAsync(java.util.Collection<E> source)
PgxCollection
PgxCollection.removeAllAsync(Collection)
.removeAllElementsAsync
in class PgxCollection<E,java.lang.Void>
source
- elements to removepublic java.lang.String toString()
PgxCollection
toString
in class PgxCollection<E,java.lang.Void>
Object.toString()
Copyright © 2015 - 2020 Oracle and/or its affiliates. All Rights Reserved.