package com.airlock.iam.admin.application.service.user;

import com.airlock.iam.common.api.domain.model.user.PersistentUser;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.stream.Stream;

public interface UsersExporter {
   String exportType();

   UsersExporter.UsersExportResult exportUsers(Stream<? extends PersistentUser> var1);

   final class UsersExportResult {
      private final Object data;
      private final String contentType;
      private final String fileName;

      @SuppressFBWarnings(justification = "generated code")
      public UsersExportResult(Object data, String contentType, String fileName) {
         this.data = data;
         this.contentType = contentType;
         this.fileName = fileName;
      }

      @SuppressFBWarnings(justification = "generated code")
      public Object data() {
         return this.data;
      }

      @SuppressFBWarnings(justification = "generated code")
      public String contentType() {
         return this.contentType;
      }

      @SuppressFBWarnings(justification = "generated code")
      public String fileName() {
         return this.fileName;
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public boolean equals(Object o) {
         if (o == this) {
            return true;
         } else if (!(o instanceof UsersExporter.UsersExportResult other)) {
            return false;
         } else {
            Object this$data = this.data;
            Object other$data = other.data;
            if (this$data == null ? other$data == null : this$data.equals(other$data)) {
               Object this$contentType = this.contentType;
               Object other$contentType = other.contentType;
               if (this$contentType == null ? other$contentType == null : this$contentType.equals(other$contentType)) {
                  Object this$fileName = this.fileName;
                  Object other$fileName = other.fileName;
                  return this$fileName == null ? other$fileName == null : this$fileName.equals(other$fileName);
               } else {
                  return false;
               }
            } else {
               return false;
            }
         }
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public int hashCode() {
         int PRIME = 59;
         int result = 1;
         Object $data = this.data;
         result = result * 59 + ($data == null ? 43 : $data.hashCode());
         Object $contentType = this.contentType;
         result = result * 59 + ($contentType == null ? 43 : $contentType.hashCode());
         Object $fileName = this.fileName;
         return result * 59 + ($fileName == null ? 43 : $fileName.hashCode());
      }

      @SuppressFBWarnings(justification = "generated code")
      @Override
      public String toString() {
         return "UsersExporter.UsersExportResult(data=" + this.data() + ", contentType=" + this.contentType() + ", fileName=" + this.fileName() + ")";
      }
   }
}
