// 
// Decompiled by Procyon v0.6.0
// 

package com.hypixel.hytale.codec.schema.config;

import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Map;
import com.hypixel.hytale.codec.builder.BuilderCodec;

public class ObjectSchema extends Schema
{
    public static final BuilderCodec<ObjectSchema> CODEC;
    private Map<String, Schema> properties;
    @Nullable
    private Object additionalProperties;
    private StringSchema propertyNames;
    private Schema unevaluatedProperties;
    
    public Map<String, Schema> getProperties() {
        return this.properties;
    }
    
    public void setProperties(final Map<String, Schema> properties) {
        this.properties = properties;
    }
    
    @Nullable
    public Object getAdditionalProperties() {
        return this.additionalProperties;
    }
    
    public void setAdditionalProperties(final boolean additionalProperties) {
        this.additionalProperties = additionalProperties;
    }
    
    public void setAdditionalProperties(final Schema additionalProperties) {
        this.additionalProperties = additionalProperties;
    }
    
    public StringSchema getPropertyNames() {
        return this.propertyNames;
    }
    
    public void setPropertyNames(final StringSchema propertyNames) {
        this.propertyNames = propertyNames;
    }
    
    @Override
    public boolean equals(@Nullable final Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || this.getClass() != o.getClass()) {
            return false;
        }
        if (!super.equals(o)) {
            return false;
        }
        final ObjectSchema that = (ObjectSchema)o;
        Label_0074: {
            if (this.properties != null) {
                if (this.properties.equals(that.properties)) {
                    break Label_0074;
                }
            }
            else if (that.properties == null) {
                break Label_0074;
            }
            return false;
        }
        Label_0107: {
            if (this.additionalProperties != null) {
                if (this.additionalProperties.equals(that.additionalProperties)) {
                    break Label_0107;
                }
            }
            else if (that.additionalProperties == null) {
                break Label_0107;
            }
            return false;
        }
        if (this.propertyNames != null) {
            if (this.propertyNames.equals(that.propertyNames)) {
                return (this.unevaluatedProperties != null) ? this.unevaluatedProperties.equals(that.unevaluatedProperties) : (that.unevaluatedProperties == null);
            }
        }
        else if (that.propertyNames == null) {
            return (this.unevaluatedProperties != null) ? this.unevaluatedProperties.equals(that.unevaluatedProperties) : (that.unevaluatedProperties == null);
        }
        return false;
    }
    
    @Override
    public int hashCode() {
        int result = super.hashCode();
        result = 31 * result + ((this.properties != null) ? this.properties.hashCode() : 0);
        result = 31 * result + ((this.additionalProperties != null) ? this.additionalProperties.hashCode() : 0);
        result = 31 * result + ((this.propertyNames != null) ? this.propertyNames.hashCode() : 0);
        result = 31 * result + ((this.unevaluatedProperties != null) ? this.unevaluatedProperties.hashCode() : 0);
        return result;
    }
    
    @Nonnull
    @Override
    public String toString() {
        return "ObjectSchema{properties=" + String.valueOf(this.properties) + ", additionalProperties=" + String.valueOf(this.additionalProperties) + "} " + super.toString();
    }
    
    static {
        // 
        // This method could not be decompiled.
        // 
        // Original Bytecode:
        // 
        //     2: invokedynamic   BootstrapMethod #1, get:()Ljava/util/function/Supplier;
        //     7: getstatic       com/hypixel/hytale/codec/schema/config/Schema.BASE_CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //    10: invokestatic    com/hypixel/hytale/codec/builder/BuilderCodec.builder:(Ljava/lang/Class;Ljava/util/function/Supplier;Lcom/hypixel/hytale/codec/builder/BuilderCodec;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    13: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    16: dup            
        //    17: ldc             "properties"
        //    19: new             Lcom/hypixel/hytale/codec/codecs/map/MapCodec;
        //    22: dup            
        //    23: getstatic       com/hypixel/hytale/codec/schema/config/Schema.CODEC:Lcom/hypixel/hytale/codec/lookup/ObjectCodecMapCodec;
        //    26: invokedynamic   BootstrapMethod #2, get:()Ljava/util/function/Supplier;
        //    31: invokespecial   com/hypixel/hytale/codec/codecs/map/MapCodec.<init>:(Lcom/hypixel/hytale/codec/Codec;Ljava/util/function/Supplier;)V
        //    34: iconst_0       
        //    35: iconst_1       
        //    36: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;ZZ)V
        //    39: invokedynamic   BootstrapMethod #3, accept:()Ljava/util/function/BiConsumer;
        //    44: invokedynamic   BootstrapMethod #4, apply:()Ljava/util/function/Function;
        //    49: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    52: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    55: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    58: dup            
        //    59: ldc             "additionalProperties"
        //    61: new             Lcom/hypixel/hytale/codec/schema/config/Schema$BooleanOrSchema;
        //    64: dup            
        //    65: invokespecial   com/hypixel/hytale/codec/schema/config/Schema$BooleanOrSchema.<init>:()V
        //    68: iconst_0       
        //    69: iconst_1       
        //    70: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;ZZ)V
        //    73: invokedynamic   BootstrapMethod #5, accept:()Ljava/util/function/BiConsumer;
        //    78: invokedynamic   BootstrapMethod #6, apply:()Ljava/util/function/Function;
        //    83: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //    86: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //    89: new             Lcom/hypixel/hytale/codec/KeyedCodec;
        //    92: dup            
        //    93: ldc             "propertyNames"
        //    95: getstatic       com/hypixel/hytale/codec/schema/config/StringSchema.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //    98: iconst_0       
        //    99: iconst_1       
        //   100: invokespecial   com/hypixel/hytale/codec/KeyedCodec.<init>:(Ljava/lang/String;Lcom/hypixel/hytale/codec/Codec;ZZ)V
        //   103: invokedynamic   BootstrapMethod #7, accept:()Ljava/util/function/BiConsumer;
        //   108: invokedynamic   BootstrapMethod #8, apply:()Ljava/util/function/Function;
        //   113: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.addField:(Lcom/hypixel/hytale/codec/KeyedCodec;Ljava/util/function/BiConsumer;Ljava/util/function/Function;)Lcom/hypixel/hytale/codec/builder/BuilderCodec$BuilderBase;
        //   116: checkcast       Lcom/hypixel/hytale/codec/builder/BuilderCodec$Builder;
        //   119: invokevirtual   com/hypixel/hytale/codec/builder/BuilderCodec$Builder.build:()Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   122: putstatic       com/hypixel/hytale/codec/schema/config/ObjectSchema.CODEC:Lcom/hypixel/hytale/codec/builder/BuilderCodec;
        //   125: return         
        // 
        // The error that occurred was:
        // 
        // java.lang.UnsupportedOperationException: The requested operation is not supported.
        //     at com.strobel.util.ContractUtils.unsupported(ContractUtils.java:27)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:284)
        //     at com.strobel.assembler.metadata.TypeReference.getRawType(TypeReference.java:279)
        //     at com.strobel.assembler.metadata.TypeReference.makeGenericType(TypeReference.java:154)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitParameterizedType(TypeSubstitutionVisitor.java:225)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitParameterizedType(TypeSubstitutionVisitor.java:25)
        //     at com.strobel.assembler.metadata.ParameterizedType.accept(ParameterizedType.java:103)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visit(TypeSubstitutionVisitor.java:40)
        //     at com.strobel.assembler.metadata.TypeSubstitutionVisitor.visitMethod(TypeSubstitutionVisitor.java:314)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2611)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1510)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:790)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferCall(TypeAnalysis.java:2689)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1040)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:782)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:778)
        //     at com.strobel.decompiler.ast.TypeAnalysis.doInferTypeForExpression(TypeAnalysis.java:1083)
        //     at com.strobel.decompiler.ast.TypeAnalysis.inferTypeForExpression(TypeAnalysis.java:815)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:684)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:667)
        //     at com.strobel.decompiler.ast.TypeAnalysis.runInference(TypeAnalysis.java:373)
        //     at com.strobel.decompiler.ast.TypeAnalysis.run(TypeAnalysis.java:95)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:344)
        //     at com.strobel.decompiler.ast.AstOptimizer.optimize(AstOptimizer.java:42)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:206)
        //     at com.strobel.decompiler.languages.java.ast.AstMethodBodyBuilder.createMethodBody(AstMethodBodyBuilder.java:93)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethodBody(AstBuilder.java:868)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createMethod(AstBuilder.java:761)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addTypeMembers(AstBuilder.java:638)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeCore(AstBuilder.java:605)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createTypeNoCache(AstBuilder.java:195)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.createType(AstBuilder.java:162)
        //     at com.strobel.decompiler.languages.java.ast.AstBuilder.addType(AstBuilder.java:137)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.buildAst(JavaLanguage.java:71)
        //     at com.strobel.decompiler.languages.java.JavaLanguage.decompileType(JavaLanguage.java:59)
        //     at com.strobel.decompiler.DecompilerDriver.decompileType(DecompilerDriver.java:333)
        //     at com.strobel.decompiler.DecompilerDriver.decompileJar(DecompilerDriver.java:254)
        //     at com.strobel.decompiler.DecompilerDriver.main(DecompilerDriver.java:129)
        // 
        throw new IllegalStateException("An error occurred while decompiling this method.");
    }
}
