This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.google.common.base.Optional; | |
import scala.None$; | |
import scala.Option; | |
public class ScalaLang { | |
public static <T> Option<T> none() { | |
return (Option<T>) None$.MODULE$; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// originally from http://lousycoder.com/blog/index.php?/archives/91-Scala-Querying-an-objects-fields-and-methods-with-reflection.html | |
package inspectable | |
import scala.Console._ | |
import scala.tools.nsc.util.NameTransformer._ | |
import java.lang.reflect.Modifier._ | |
import java.lang.reflect.{Method, Member, Field} | |
import java.lang.Class |