BUG-7464: Refactor Option/None/Some and its callers
[yangtools.git] / third-party / triemap / src / main / java / org / opendaylight / yangtools / triemap / Some.java
index 554cb03472fc7e9f1073d10f25a760ae664ec9a7..e81df3dcd84a59b520b6ac4c9e7212df047e6cad 100644 (file)
@@ -22,18 +22,19 @@ package org.opendaylight.yangtools.triemap;
  *
  * @param <V>
  */
-class Some<V> extends Option<V>{
-    final V value;
-    public Some(final V v) {
+final class Some<V> extends Option<V>{
+    private final V value;
+
+    Some(final V v) {
         value = v;
     }
 
-    public V get() {
+    V get() {
         return value;
     }
 
     @Override
-    public boolean nonEmpty () {
+    boolean nonEmpty () {
         return value != null;
     }
 }