org.apache.tinkerpop.gremlin.ogm.paths.bound.SingleBoundPath.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-gremlin-ogm Show documentation
Show all versions of kotlin-gremlin-ogm Show documentation
The Object Graph Mapping Library for Kotlin and Gremlin
package org.apache.tinkerpop.gremlin.ogm.paths.bound
import org.apache.tinkerpop.gremlin.ogm.elements.Vertex
/**
* A [SingleBoundPath] is a [BoundPath] that is bound to only 1 'from' object.
*/
interface SingleBoundPath : BoundPath {
/**
* The object to start the [Path]'s traversal with
*/
val from: FROM
override val froms: Iterable get() = listOf(from)
/**
* A [SingleBoundPath] that results to 0 or more 'TO' objects for each 'FROM' object
* the path is traversed with.
*/
interface ToMany : SingleBoundPath, BoundPath.ToMany
/**
* A [SingleBoundPath] that results to exactly 1 'TO' objects for each 'FROM' object
* the path is traversed with.
*/
interface ToSingle : SingleBoundPath, BoundPath.ToSingle
/**
* A [SingleBoundPath] that results to 0 or 1 'TO' objects for each 'FROM' object
* the path is traversed with.
*/
interface ToOptional : SingleBoundPath, BoundPath.ToOptional
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy