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 voidaddAll(PgxEntity[] elements)Adds elements of aPgxEntityarray to this collection.voidaddAllElements(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)Returnstrueif this collection contains the specified element.IdTypegetIdType()Gets the ID type of the element type.voidremoveAllElements(ScalarCollection source)PgxFuture<java.lang.Void>removeAllElementsAsync(java.util.Collection<E> source)Removes elements from an existing collection.java.lang.StringtoString()(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:PgxCollectionAdds elements to an existing collection.- Specified by:
addAllElementsAsyncin 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:PgxCollectionRemoves elements from an existing collection.- Specified by:
removeAllElementsAsyncin classPgxCollection<E,java.lang.Void>- Parameters:
source- elements to remove
-
containsAsync
public final PgxFuture<java.lang.Boolean> containsAsync(E element)
Description copied from class:PgxCollectionReturnstrueif this collection contains the specified element.- Specified by:
containsAsyncin classPgxCollection<E,java.lang.Void>- Parameters:
element- element whose presence in this collection is to be tested- Returns:
trueif this collection contains the specified element
-
toString
public java.lang.String toString()
Description copied from class:PgxCollection(non-Javadoc)- Overrides:
toStringin classPgxCollection<E,java.lang.Void>- See Also:
Object.toString()
-
getIdType
public IdType getIdType()
Description copied from class:PgxCollectionGets the ID type of the element type.- Specified by:
getIdTypein classPgxCollection<E,java.lang.Void>- Returns:
- the ID type of the element type.
-
addAll
public void addAll(PgxEntity[] elements)
Description copied from class:PgxCollectionAdds elements of aPgxEntityarray to this collection.- Specified by:
addAllin classPgxCollection<E,java.lang.Void>- Parameters:
elements- thePgxEntityarray containing the elements to add
-
addAllElements
public void addAllElements(ScalarCollection source)
-
removeAllElements
public void removeAllElements(ScalarCollection source)
-
-