package com.airlock.iam.common.api.infrastructure.mapper;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import ma.glasnost.orika.MapperFactory;

public final class MapperConfiguration {
   private final MapperFactory mapperFactory;

   @SuppressFBWarnings(justification = "generated code")
   public MapperConfiguration(MapperFactory mapperFactory) {
      this.mapperFactory = mapperFactory;
   }

   @SuppressFBWarnings(justification = "generated code")
   public MapperFactory getMapperFactory() {
      return this.mapperFactory;
   }

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

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

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "MapperConfiguration(mapperFactory=" + this.getMapperFactory() + ")";
   }
}
