Class TinkerVertexProperty<V>

    • Constructor Detail

      • TinkerVertexProperty

        public TinkerVertexProperty​(TinkerVertex vertex,
                                    String key,
                                    V value,
                                    Object... propertyKeyValues)
        This constructor will not validate the ID type against the Graph. It will always just use a Long for its identifier. This is useful for constructing a VertexProperty for usage with TinkerGraphComputerView.
      • TinkerVertexProperty

        public TinkerVertexProperty​(Object id,
                                    TinkerVertex vertex,
                                    String key,
                                    V value,
                                    Object... propertyKeyValues)
        Use this constructor to construct VertexProperty instances for TinkerGraph where the id can be explicitly set and validated against the expected data type.
    • Method Detail

      • key

        public String key()
        Description copied from interface: Property
        The key of the property.
        Specified by:
        key in interface Property<V>
        Returns:
        The property key
      • value

        public V value()
        Description copied from interface: Property
        The value of the property.
        Specified by:
        value in interface Property<V>
        Returns:
        The property value
      • isPresent

        public boolean isPresent()
        Description copied from interface: Property
        Whether the property is empty or not.
        Specified by:
        isPresent in interface Property<V>
        Returns:
        True if the property exists, else false
      • id

        public Object id()
        Description copied from interface: Element
        Gets the unique identifier for the graph Element.
        Specified by:
        id in interface Element
        Overrides:
        id in class TinkerElement
        Returns:
        The id of the element
      • keys

        public Set<String> keys()
        Description copied from interface: Element
        Get the keys of the properties associated with this element. The default implementation iterators the properties and stores the keys into a HashSet.
        Specified by:
        keys in interface Element
        Returns:
        The property key set
      • property

        public <U> Property<U> property​(String key,
                                        U value)
        Description copied from interface: Element
        Add or set a property value for the Element given its key.
        Specified by:
        property in interface Element
      • remove

        public void remove()
        Description copied from interface: Property
        Remove the property from the associated element.
        Specified by:
        remove in interface Element
        Specified by:
        remove in interface Property<V>