1 package org.opendaylight.yangtools.triemap;
4 * Mimic Option in Scala
6 * @author Roman Levenstein <romixlev@gmail.com>
10 @SuppressWarnings({"rawtypes", "unchecked"})
12 static None none = new None();
13 public static <V> Option<V> makeOption(V o){
15 return new Some<V>(o);
17 return (Option<V>)none;
20 public static <V> Option<V> makeOption(){
21 return (Option<V>)none;
23 public boolean nonEmpty () {