Make getIfFeaturePredicate() a default method
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / type / Int8TypeDefinition.java
index 3747accfd0c72f43b60caf619ecb7a100adef191..d5f94d700075efb68cc5e49ad20fc76285f69dc0 100644 (file)
@@ -7,6 +7,9 @@
  */
 package org.opendaylight.yangtools.yang.model.api.type;
 
+import org.eclipse.jdt.annotation.NonNull;
+import org.eclipse.jdt.annotation.Nullable;
+
 /**
  * Type definition derived from int8 type.
  *
@@ -14,15 +17,15 @@ package org.opendaylight.yangtools.yang.model.api.type;
  */
 public interface Int8TypeDefinition extends RangeRestrictedTypeDefinition<Int8TypeDefinition, Byte> {
 
-    static int hashCode(final Int8TypeDefinition type) {
+    static int hashCode(final @NonNull Int8TypeDefinition type) {
         return TypeDefinitions.hashCode(type);
     }
 
-    static boolean equals(final Int8TypeDefinition type, final Object obj) {
+    static boolean equals(final @NonNull Int8TypeDefinition type, final @Nullable Object obj) {
         return TypeDefinitions.equals(Int8TypeDefinition.class, type, obj);
     }
 
-    static String toString(final Int8TypeDefinition type) {
+    static String toString(final @NonNull Int8TypeDefinition type) {
         return TypeDefinitions.toString(type);
     }
 }