Modifier and Type | Method and Description |
---|---|
default boolean |
contains(Object o)
Returns
true if this snapshot contains the specified element. |
default boolean |
containsAll(Collection<?> c)
Returns
true if this snapshot contains all of the elements in the specified snapshot. |
default T |
first()
Returns the first element of this snapshot or
null if this snapshot is empty. |
T |
get(Object o)
Returns the first element in this snapshot equals to the specified object or
null if no element in this snapshot is equal to the specified object. |
default String |
info()
Returns a
String representation of all vertices contained in this snapshot. |
default boolean |
isEmpty()
Returns
true if this snapshot contains no elements. |
Iterator<T> |
iterator() |
default int |
size()
Returns the number of elements in this snapshot.
|
default Stream<T> |
unfilteredStream()
Returns a
Stream of this Snapshot . |
createChild, filter, filter, filter, getByIndex, getFilter, getParent, stream, toList
forEach, spliterator
default Stream<T> unfilteredStream()
Snapshot
Stream
of this Snapshot
. Used only if this Snapshot
is not filtered.unfilteredStream
in interface Snapshot<T>
Stream
of this Snapshot
.default int size()
Snapshot
default boolean isEmpty()
Snapshot
true
if this snapshot contains no elements.default boolean contains(Object o)
Snapshot
true
if this snapshot contains the specified element.default boolean containsAll(Collection<?> c)
Snapshot
true
if this snapshot contains all of the elements in the specified snapshot.containsAll
in interface Snapshot<T>
c
- collection to be checked for containment in this snapshot.true
if this snapshot contains all of the elements in the specified snapshot.T get(Object o)
Snapshot
null
if no element in this snapshot is equal to the specified object.default String info()
Snapshot
String
representation of all vertices contained in this snapshot.Copyright © 2017. All rights reserved.