Package oracle.pgx.api
Class ScalarCollection<E>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.Destroyable
-
- oracle.pgx.api.PgxManagedObject
-
- oracle.pgx.api.PgxCollection<E,java.lang.Void>
-
- oracle.pgx.api.ScalarCollection<E>
-
- Type Parameters:
E
- the scalar type.
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<E>
,oracle.pgx.common.IdentifiableCollection
- Direct Known Subclasses:
ScalarSequence
,ScalarSet
public abstract class ScalarCollection<E> extends PgxCollection<E,java.lang.Void>
A collection of scalars.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAll(PgxEntity[] elements)
Adds elements of aPgxEntity
array to this collection.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)
Returnstrue
if this collection contains the specified element.IdType
getIdType()
Gets the ID type of the element type.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)-
Methods inherited from class oracle.pgx.api.PgxCollection
add, addAllAsync, addAllElements, clear, clearAsync, clone, clone, cloneAsync, cloneAsync, contains, destroyAsync, getCollectionType, getContentType, getGraph, getId, getName, isMutable, isMutableAsync, iterator, iteratorAsync, remove, removeAllElements, size, sizeAsync, stream, toMutable, toMutable, toMutableAsync, toMutableAsync
-
Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCode
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Method Detail
-
addAllElementsAsync
public final PgxFuture<java.lang.Void> addAllElementsAsync(java.util.Collection<E> source)
Description copied from class:PgxCollection
Adds elements to an existing collection.- Specified by:
addAllElementsAsync
in classPgxCollection<E,java.lang.Void>
- Parameters:
source
- elements to add
-
removeAllElementsAsync
public final PgxFuture<java.lang.Void> removeAllElementsAsync(java.util.Collection<E> source)
Description copied from class:PgxCollection
Removes elements from an existing collection.- Specified by:
removeAllElementsAsync
in classPgxCollection<E,java.lang.Void>
- Parameters:
source
- elements to remove
-
containsAsync
public final PgxFuture<java.lang.Boolean> containsAsync(E element)
Description copied from class:PgxCollection
Returnstrue
if this collection contains the specified element.- Specified by:
containsAsync
in classPgxCollection<E,java.lang.Void>
- Parameters:
element
- element whose presence in this collection is to be tested- Returns:
true
if this collection contains the specified element
-
toString
public java.lang.String toString()
Description copied from class:PgxCollection
(non-Javadoc)- Overrides:
toString
in classPgxCollection<E,java.lang.Void>
- See Also:
Object.toString()
-
getIdType
public IdType getIdType()
Description copied from class:PgxCollection
Gets the ID type of the element type.- Specified by:
getIdType
in classPgxCollection<E,java.lang.Void>
- Returns:
- the ID type of the element type.
-
addAll
public void addAll(PgxEntity[] elements)
Description copied from class:PgxCollection
Adds elements of aPgxEntity
array to this collection.- Specified by:
addAll
in classPgxCollection<E,java.lang.Void>
- Parameters:
elements
- thePgxEntity
array containing the elements to add
-
addAllElements
public void addAllElements(ScalarCollection source)
-
removeAllElements
public void removeAllElements(ScalarCollection source)
-
-