All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tinkerpop.gremlin.scala.ScalaLoopBundle.scala Maven / Gradle / Ivy

There is a newer version: 2.4.2
Show newest version
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