Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package se.ugli.durian.j.internal;
 
 import java.util.Set;
 
 import scala.Option;
 
 public class JavaScala {
 
	public static <T> T getOrNull(Option<T> opt) {
		return opt.isDefined() ? opt.get() : null;
	}
	public static Iterable<?> iterable(Seq<?> seq) {
		return scala.collection.JavaConversions.asJavaIterable(seq);
	}
	public static Set<?> set(scala.collection.Set<?> set) {
		return scala.collection.JavaConversions.setAsJavaSet(set);
	}
New to GrepCode? Check out our FAQ X