Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 417 Bytes
package com.tinkerpop.gremlin.scala
import com.tinkerpop.blueprints.Element
import java.util.{Map => JMap}
* @author Marko A. Rodriguez (
abstract class ScalaElement(val element: Element) {
def as[T](key: String): Option[T] = Option(element.getProperty(key)).map(_.asInstanceOf[T])
def id: Any = element.getId
def apply(key: String): Object = element.getProperty(key)
Something went wrong with that request. Please try again.