Deprecate CheckedValue.orElseThrow(Supplier)
[yangtools.git] / common / concepts / src / main / java / org / opendaylight / yangtools / concepts / Delegator.java
index be799d7fc05dc680999b814cb15c41b987f3aa53..78325fb4d52b7ff5581bf7a71435f37cf09b70c4 100644 (file)
@@ -7,15 +7,18 @@
  */
 package org.opendaylight.yangtools.concepts;
 
+import org.eclipse.jdt.annotation.NonNull;
+
 /**
- * Implementation of this interface delegates all it's calls
- * to the delegator if not specified otherwise.
- * 
+ * Implementation of this interface delegates all its calls to the delegate if not specified otherwise.
  *
  * @param <T> Type of delegate
  */
 public interface Delegator<T> {
-
-    T getDelegate();
-
+    /**
+     * Return underlying delegate.
+     *
+     * @return underlying delegate.
+     */
+    @NonNull T getDelegate();
 }