Package oracle.pgx.api
Class VertexCollection<ID>
- java.lang.Object
-
- oracle.pgx.api.internal.ApiObject
-
- oracle.pgx.api.Destroyable
-
- oracle.pgx.api.PgxManagedObject
-
- oracle.pgx.api.PgxCollection<E,ID>
-
- oracle.pgx.api.GraphEntityCollection<PgxVertex<ID>,ID>
-
- oracle.pgx.api.VertexCollection<ID>
-
- Type Parameters:
ID
- the vertex ID type.
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<PgxVertex<ID>>
,oracle.pgx.common.IdentifiableCollection
,oracle.pgx.common.IdentifiableVertexCollection
- Direct Known Subclasses:
ComponentCollection
,VertexSequence
,VertexSet
public abstract class VertexCollection<ID> extends GraphEntityCollection<PgxVertex<ID>,ID> implements oracle.pgx.common.IdentifiableVertexCollection
A collection of vertices.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAllById(ID... ids)
Replaces#addAll(Object[])
.IdType
getIdType()
Gets the ID type of the element type.void
removeAllById(ID... ids)
Replaces#removeAll(Object[])
.-
Methods inherited from class oracle.pgx.api.GraphEntityCollection
addAll, addAllById, addAllByIdAsync, addAllElementsAsync, containsAsync, removeAllById, removeAllByIdAsync, removeAllElementsAsync
-
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, toString
-
Methods inherited from class oracle.pgx.api.PgxManagedObject
equals, hashCode
-
Methods inherited from class oracle.pgx.api.Destroyable
close, destroy
-
-
-
-
Method Detail
-
getIdType
public IdType getIdType()
Description copied from class:PgxCollection
Gets the ID type of the element type.- Specified by:
getIdType
in classPgxCollection<PgxVertex<ID>,ID>
- Returns:
- the ID type of the element type.
-
addAllById
@SafeVarargs public final void addAllById(ID... ids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Description copied from class:GraphEntityCollection
Replaces#addAll(Object[])
.- Specified by:
addAllById
in classGraphEntityCollection<PgxVertex<ID>,ID>
- Parameters:
ids
- elements to add- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
removeAllById
@SafeVarargs public final void removeAllById(ID... ids) throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
Description copied from class:GraphEntityCollection
Replaces#removeAll(Object[])
.- Specified by:
removeAllById
in classGraphEntityCollection<PgxVertex<ID>,ID>
- Parameters:
ids
- elements to remove- Throws:
java.util.concurrent.ExecutionException
java.lang.InterruptedException
-
-