package com.l7tech.server.service.resolution;

import com.l7tech.gateway.common.service.PublishedService;
import java.util.Collections;
import java.util.Set;

public class Result {
   private static final Set<PublishedService> a = Collections.emptySet();
   public static final Result NO_MATCH = new Result(a);
   public static final Result NOT_APPLICABLE = new Result(a);
   private final Set<PublishedService> b;
   private static final String c;

   public Set<PublishedService> getMatches() {
      return this.b;
   }

   Result(Set<PublishedService> var1) {
      if (var1 == null) {
         throw new NullPointerException(c);
      }

      this.b = var1;
   }

   @Override
   public boolean equals(Object param1) {
      // $VF: Couldn't be decompiled
      // Please report this to the Vineflower issue tracker, at https://github.com/Vineflower/vineflower/issues with a copy of the class file (if you have the rights to distribute it!)
      // java.lang.RuntimeException: parsing failure!
      //   at org.jetbrains.java.decompiler.modules.decompiler.decompose.DomHelper.parseGraph(DomHelper.java:211)
      //   at org.jetbrains.java.decompiler.main.rels.MethodProcessor.codeToJava(MethodProcessor.java:174)
      //
      // Bytecode:
      // 00: aload 1
      // 01: getstatic com/l7tech/server/service/resolution/Result.NO_MATCH Lcom/l7tech/server/service/resolution/Result;
      // 04: if_acmpeq 15
      // 07: aload 1
      // 08: getstatic com/l7tech/server/service/resolution/Result.NOT_APPLICABLE Lcom/l7tech/server/service/resolution/Result;
      // 0b: if_acmpne 2b
      // 0e: goto 15
      // 11: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 14: athrow
      // 15: aload 0
      // 16: aload 1
      // 17: if_acmpne 29
      // 1a: goto 21
      // 1d: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 20: athrow
      // 21: bipush 1
      // 22: goto 2a
      // 25: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 28: athrow
      // 29: bipush 0
      // 2a: ireturn
      // 2b: aload 0
      // 2c: aload 1
      // 2d: if_acmpne 36
      // 30: bipush 1
      // 31: ireturn
      // 32: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 35: athrow
      // 36: aload 1
      // 37: ifnull 4c
      // 3a: aload 0
      // 3b: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 3e: aload 1
      // 3f: invokevirtual java/lang/Object.getClass ()Ljava/lang/Class;
      // 42: if_acmpeq 52
      // 45: goto 4c
      // 48: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 4b: athrow
      // 4c: bipush 0
      // 4d: ireturn
      // 4e: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 51: athrow
      // 52: aload 1
      // 53: checkcast com/l7tech/server/service/resolution/Result
      // 56: astore 2
      // 57: aload 0
      // 58: getfield com/l7tech/server/service/resolution/Result.b Ljava/util/Set;
      // 5b: ifnull 7c
      // 5e: aload 0
      // 5f: getfield com/l7tech/server/service/resolution/Result.b Ljava/util/Set;
      // 62: aload 2
      // 63: getfield com/l7tech/server/service/resolution/Result.b Ljava/util/Set;
      // 66: invokeinterface java/util/Set.equals (Ljava/lang/Object;)Z 2
      // 6b: ifne 89
      // 6e: goto 75
      // 71: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 74: athrow
      // 75: goto 83
      // 78: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 7b: athrow
      // 7c: aload 2
      // 7d: getfield com/l7tech/server/service/resolution/Result.b Ljava/util/Set;
      // 80: ifnull 89
      // 83: bipush 0
      // 84: ireturn
      // 85: invokestatic com/l7tech/server/service/resolution/Result.a (Ljava/lang/NullPointerException;)Ljava/lang/NullPointerException;
      // 88: athrow
      // 89: bipush 1
      // 8a: ireturn
      // try (0 -> 6): 7 java/lang/NullPointerException
      // try (3 -> 12): 13 java/lang/NullPointerException
      // try (9 -> 17): 17 java/lang/NullPointerException
      // try (21 -> 26): 26 java/lang/NullPointerException
      // try (28 -> 35): 36 java/lang/NullPointerException
      // try (30 -> 40): 40 java/lang/NullPointerException
      // try (45 -> 54): 55 java/lang/NullPointerException
      // try (48 -> 58): 58 java/lang/NullPointerException
      // try (60 -> 65): 65 java/lang/NullPointerException
   }

   @Override
   public int hashCode() {
      try {
         if (this.b == a) {
            return super.hashCode();
         }
      } catch (NullPointerException var1) {
         throw a(var1);
      }

      try {
         if (this.b != null) {
            return this.b.hashCode();
         }
      } catch (NullPointerException var2) {
         throw a(var2);
      }

      return 0;
   }

   static {
      String var10002 = a(81, a("g^Uxa\rD\u0010H\u001a{aHSDR\u001b}m\u0006\u0007\u0010V\u0014bg\u0000EC"));
      byte var10001 = -1;
      c = var10002;
   }

   private static NullPointerException a(NullPointerException var0) {
      return var0;
   }

   private static char[] a(String var0) {
      char[] var10000 = var0.toCharArray();
      if (var10000.length < 2) {
         var10000[0] = (char)(var10000[0] ^ 113);
      }

      return var10000;
   }

   private static String a(int var0, char[] var1) {
      int var10003 = var1.length;
      int var10002 = var0;
      char[] var10001 = var1;
      int var10000 = var10003;

      for (int var2 = 0; var10000 > var2; var2++) {
         var10001[var2] = (char)(var10001[var2] ^ var10002 ^ switch (var2 % 7) {
            case 0 -> 97;
            case 1 -> 106;
            case 2 -> 36;
            case 3 -> 71;
            case 4 -> 85;
            case 5 -> 57;
            default -> 113;
         });
      }

      return new String(var10001).intern();
   }
}
