static boolean equals(final InstanceIdentifierTypeDefinition type, final Object obj) {
    if (type == obj) {
      return true;
    }

    final InstanceIdentifierTypeDefinition other =
        castIfEquals(InstanceIdentifierTypeDefinition.class, type, obj);
    return other != null && type.requireInstance() == other.requireInstance();
  }
 static int hashCode(final InstanceIdentifierTypeDefinition type) {
   return Objects.hash(
       type.getPath(),
       type.getUnknownSchemaNodes(),
       type.getBaseType(),
       type.getUnits(),
       type.getDefaultValue(),
       type.requireInstance());
 }
 static String toString(final InstanceIdentifierTypeDefinition type) {
   return toStringHelper(type).add("requireInstance", type.requireInstance()).toString();
 }