public final class EmptyVertexProperty<V> extends java.lang.Object implements VertexProperty<V>
VertexProperty.Exceptions, VertexProperty.IteratorsDEFAULT_LABEL| Constructor and Description |
|---|
EmptyVertexProperty() |
| Modifier and Type | Method and Description |
|---|---|
Vertex |
element()
Gets the
Vertex that owns this VertexProperty. |
Graph |
graph()
Get the graph that this element is within.
|
java.lang.Object |
id()
Gets the unique identifier for the graph
Element. |
static <U> VertexProperty<U> |
instance() |
boolean |
isPresent()
Whether the property is empty or not.
|
VertexProperty.Iterators |
iterators()
Gets the
VertexProperty.Iterators set. |
java.lang.String |
key()
The key of the property.
|
<U> Property<U> |
property(java.lang.String key)
Get a
Property for the Element given its key. |
<U> Property<U> |
property(java.lang.String key,
U value)
Add or set a property value for the
Element given its key. |
void |
remove()
Remove the property from the associated element.
|
java.lang.String |
toString() |
V |
value()
The value of the property.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitempty, labelifPresent, orElse, orElseGet, orElseThrowproperties, propertyMap, start, valueMap, valueMapaddBothE, addE, addInE, addOutE, aggregate, aggregate, as, back, between, both, bothE, bothV, branch, cap, cap, choose, choose, coin, count, cyclicPath, dedup, emit, emit, emit, except, except, except, filter, flatMap, fold, fold, group, group, groupCount, groupCount, has, has, has, has, has, has, has, hasNot, identity, in, inE, inject, inV, limit, local, map, match, order, otherV, out, outE, outV, path, profile, range, repeat, retain, retain, retain, sack, sack, sack, sample, select, select, shuffle, sideEffect, simplePath, store, store, subgraph, subgraph, subgraph, subgraph, submit, sum, timeLimit, times, to, toE, toV, tree, tree, unfold, union, until, until, values, where, where, where, withPath, withSack, withSack, withSideEffectpublic static <U> VertexProperty<U> instance()
public Vertex element()
VertexPropertyVertex that owns this VertexProperty.element in interface Property<V>element in interface VertexProperty<V>Vertex, Edge, or VertexProperty).public java.lang.Object id()
ElementElement.public Graph graph()
VertexPropertygraph in interface Elementgraph in interface VertexProperty<V>public <U> Property<U> property(java.lang.String key)
ElementProperty for the Element given its key.
The default implementation calls the raw Element#iterators#propertyIterator.public <U> Property<U> property(java.lang.String key, U value)
ElementElement given its key.public java.lang.String key()
Propertypublic V value() throws java.util.NoSuchElementException
Propertypublic boolean isPresent()
Propertypublic void remove()
Propertypublic java.lang.String toString()
toString in class java.lang.Objectpublic VertexProperty.Iterators iterators()
VertexPropertyVertexProperty.Iterators set.
Gets the iterators for the Element. Iterators provide low-level access to the data associated with
an Element as they do not come with the overhead of Traversal
construction. Use iterators in places where performance is most crucial.iterators in interface Elementiterators in interface VertexProperty<V>Copyright © 2013-2015 TinkerPop. All Rights Reserved.