Class EmptyVertexProperty<V>
java.lang.Object
org.apache.tinkerpop.gremlin.structure.util.empty.EmptyVertexProperty<V>
- All Implemented Interfaces:
Element,Property<V>,VertexProperty<V>
- Author:
- Marko A. Rodriguez (http://markorodriguez.com)
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
VertexProperty.Cardinality, VertexProperty.Exceptions -
Field Summary
Fields inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
DEFAULT_LABEL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionelement()Gets theVertexthat owns thisVertexProperty.graph()Get the graph that this element is within.id()Gets the unique identifier for the graphElement.static <U> VertexProperty<U>instance()booleanWhether the property is empty or not.key()The key of the property.properties(String... propertyKeys) Get anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys.<U> Property<U>Get aPropertyfor theElementgiven its key.<U> Property<U>Add or set a property value for theElementgiven its key.voidremove()Remove the property from the associated element.toString()value()The value of the property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Element
addLabel, dropLabel, dropLabels, keys, value, valuesMethods inherited from interface org.apache.tinkerpop.gremlin.structure.Property
ifPresent, orElse, orElseGet, orElseThrowMethods inherited from interface org.apache.tinkerpop.gremlin.structure.VertexProperty
label, labels
-
Constructor Details
-
EmptyVertexProperty
public EmptyVertexProperty()
-
-
Method Details
-
instance
-
element
Description copied from interface:VertexPropertyGets theVertexthat owns thisVertexProperty.- Specified by:
elementin interfaceProperty<V>- Specified by:
elementin interfaceVertexProperty<V>- Returns:
- The element associated with this property (i.e.
Vertex,Edge, orVertexProperty).
-
id
Description copied from interface:ElementGets the unique identifier for the graphElement. -
graph
Description copied from interface:VertexPropertyGet the graph that this element is within.- Specified by:
graphin interfaceElement- Specified by:
graphin interfaceVertexProperty<V>- Returns:
- the graph of this element
-
property
Description copied from interface:ElementGet aPropertyfor theElementgiven its key. The default implementation calls the rawElement.properties(java.lang.String...). -
property
Description copied from interface:ElementAdd or set a property value for theElementgiven its key. -
key
Description copied from interface:PropertyThe key of the property. -
value
Description copied from interface:PropertyThe value of the property.- Specified by:
valuein interfaceProperty<V>- Returns:
- The property value
- Throws:
NoSuchElementException- thrown if the property is empty
-
isPresent
public boolean isPresent()Description copied from interface:PropertyWhether the property is empty or not. -
remove
public void remove()Description copied from interface:PropertyRemove the property from the associated element. -
toString
-
properties
Description copied from interface:VertexPropertyGet anIteratorof properties where thepropertyKeysis meant to be a filter on the available keys. If no keys are provide then return all the properties.- Specified by:
propertiesin interfaceElement- Specified by:
propertiesin interfaceVertexProperty<V>
-