com.tinkerpop.gremlin.scala.ScalaLoopBundle.scala Maven / Gradle / Ivy
package com.tinkerpop.gremlin.scala
import com.tinkerpop.pipes.branch.LoopPipe.LoopBundle
/**Provides convenience methods for LoopBundle[T]. */
class ScalaLoopBundle[T](val bundle: LoopBundle[T]) {
def loops = bundle.getLoops
def obj = bundle.getObject
}
object ScalaLoopBundle {
implicit def wrap[T](bundle: LoopBundle[T]) = new ScalaLoopBundle[T](bundle)
implicit def unwrap[T](wrapper: ScalaLoopBundle[T]) = wrapper.bundle
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy