Class DetachedProperty<V>

    • Constructor Detail

      • DetachedProperty

        protected DetachedProperty​(Property<V> property)
      • DetachedProperty

        public DetachedProperty​(String key,
                                V value)
      • DetachedProperty

        public DetachedProperty​(String key,
                                V value,
                                Element element)
    • Method Detail

      • get

        public Property<V> get()
        Description copied from interface: Attachable
        Get the raw object trying to be attached.
        Specified by:
        get in interface Attachable<V>
        Returns:
        the raw object to attach
      • 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
      • 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
      • element

        public Element element()
        Description copied from interface: Property
        Get the element that this property is associated with.
        Specified by:
        element in interface Property<V>
        Returns:
        The element associated with this property (i.e. Vertex, Edge, or VertexProperty).
      • remove

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

        public int hashCode()
        Overrides:
        hashCode in class Object