BinaryRenderResult.java 12.2 KB
/*
 * Decompiled with CFR 0_118.
 * 
 * Could not load the following classes:
 *  scala.Function1
 *  scala.None
 *  scala.None$
 *  scala.Option
 *  scala.Product
 *  scala.Product$class
 *  scala.ScalaObject
 *  scala.Serializable
 *  scala.Some
 *  scala.Tuple3
 *  scala.collection.Iterator
 *  scala.reflect.ScalaSignature
 *  scala.runtime.BoxesRunTime
 *  scala.runtime.ScalaRunTime
 *  scala.runtime.ScalaRunTime$
 */
package com.adobe.forms.service.impl;

import com.adobe.forms.cache.Cacheable;
import com.adobe.forms.model.XFATemplate;
import com.adobe.forms.rm.Resource;
import com.adobe.forms.service.impl.BinaryRenderResult$;
import scala.Function1;
import scala.None;
import scala.Option;
import scala.Product;
import scala.ScalaObject;
import scala.Serializable;
import scala.Some;
import scala.Tuple3;
import scala.collection.Iterator;
import scala.reflect.ScalaSignature;
import scala.runtime.BoxesRunTime;
import scala.runtime.ScalaRunTime;

/*
 * This class specifies class file version 49.0 but uses Java 6 signatures.  Assumed Java 6.
 */
@ScalaSignature(bytes="\u0006\u0001\u0005Ue\u0001B\u0001\u0003\u00016\u0011!CQ5oCJL(+\u001a8eKJ\u0014Vm];mi*\u00111\u0001B\u0001\u0005S6\u0004HN\u0003\u0002\u0006\r\u000591/\u001a:wS\u000e,'BA\u0004\t\u0003\u00151wN]7t\u0015\tI!\"A\u0003bI>\u0014WMC\u0001\f\u0003\r\u0019w.\\\u0002\u0001'\u0019\u0001aB\u0006\u000f#KA\u0011q\u0002F\u0007\u0002!)\u0011\u0011CE\u0001\u0005Y\u0006twMC\u0001\u0014\u0003\u0011Q\u0017M^1\n\u0005U\u0001\"AB(cU\u0016\u001cG\u000f\u0005\u0002\u001855\t\u0001D\u0003\u0002\u001a\r\u0005)1-Y2iK&\u00111\u0004\u0007\u0002\n\u0007\u0006\u001c\u0007.Z1cY\u0016\u0004\"!\b\u0011\u000e\u0003yQ\u0011aH\u0001\u0006g\u000e\fG.Y\u0005\u0003Cy\u00111bU2bY\u0006|%M[3diB\u0011QdI\u0005\u0003Iy\u0011q\u0001\u0015:pIV\u001cG\u000f\u0005\u0002\u001eM%\u0011qE\b\u0002\r'\u0016\u0014\u0018.\u00197ju\u0006\u0014G.\u001a\u0005\tS\u0001\u0011)\u001a!C\u0001U\u0005\u0019!/Z:\u0016\u0003-\u0002\"\u0001L\u0018\u000e\u00035R!A\f\u0004\u0002\u0005Il\u0017B\u0001\u0019.\u0005!\u0011Vm]8ve\u000e,\u0007\u0002\u0003\u001a\u0001\u0005#\u0005\u000b\u0011B\u0016\u0002\tI,7\u000f\t\u0005\ti\u0001\u0011)\u001a!C\u0001k\u00051qN\u00196LKf,\u0012A\u000e\t\u0004;]J\u0014B\u0001\u001d\u001f\u0005\u0019y\u0005\u000f^5p]B\u0011!(\u0010\b\u0003;mJ!\u0001\u0010\u0010\u0002\rA\u0013X\rZ3g\u0013\tqtH\u0001\u0004TiJLgn\u001a\u0006\u0003yyA\u0001\"\u0011\u0001\u0003\u0012\u0003\u0006IAN\u0001\b_\nT7*Z=!\u0011!\u0019\u0005A!f\u0001\n\u0003!\u0015\u0001\u0003;f[Bd\u0017\r^3\u0016\u0003\u0015\u0003\"AR%\u000e\u0003\u001dS!\u0001\u0013\u0004\u0002\u000b5|G-\u001a7\n\u0005);%a\u0003-G\u0003R+W\u000e\u001d7bi\u0016D\u0001\u0002\u0014\u0001\u0003\u0012\u0003\u0006I!R\u0001\ni\u0016l\u0007\u000f\\1uK\u0002BQA\u0014\u0001\u0005\u0002=\u000ba\u0001P5oSRtD\u0003\u0002)S'R\u0003\"!\u0015\u0001\u000e\u0003\tAQ!K'A\u0002-BQ\u0001N'A\u0002YBQaQ'A\u0002\u0015CQA\u0016\u0001\u0005B]\u000b\u0011\"[:FqBL'/\u001a3\u0015\u0005a[\u0006CA\u000fZ\u0013\tQfDA\u0004C_>dW-\u00198\t\u000bq+\u0006\u0019A/\u0002\u000f\r,(O]3oiB\u0019Qd\u000e\f\t\u000b}\u0003A\u0011\t1\u0002\u0017%\u001c8)Y2iK\u0006\u0014G.Z\u000b\u00021\"A!\r\u0001EC\u0002\u0013\u0005Q'A\u0002lKfD\u0001\u0002\u001a\u0001\t\u0002\u0003\u0006KAN\u0001\u0005W\u0016L\b\u0005\u0003\u0005g\u0001!\u0015\r\u0011\"\u0001h\u0003\u0011\u0019\u0018N_3\u0016\u0003!\u0004\"!H5\n\u0005)t\"\u0001\u0002'p]\u001eD\u0001\u0002\u001c\u0001\t\u0002\u0003\u0006K\u0001[\u0001\u0006g&TX\r\t\u0005\b]\u0002\t\t\u0011\"\u0001p\u0003\u0011\u0019w\u000e]=\u0015\tA\u0003\u0018O\u001d\u0005\bS5\u0004\n\u00111\u0001,\u0011\u001d!T\u000e%AA\u0002YBqaQ7\u0011\u0002\u0003\u0007Q\tC\u0004u\u0001E\u0005I\u0011A;\u0002\u001d\r|\u0007/\u001f\u0013eK\u001a\fW\u000f\u001c;%cU\taO\u000b\u0002,o.\n\u0001\u0010\u0005\u0002z}6\t!P\u0003\u0002|y\u0006IQO\\2iK\u000e\\W\r\u001a\u0006\u0003{z\t!\"\u00198o_R\fG/[8o\u0013\ty(PA\tv]\u000eDWmY6fIZ\u000b'/[1oG\u0016D\u0011\"a\u0001\u0001#\u0003%\t!!\u0002\u0002\u001d\r|\u0007/\u001f\u0013eK\u001a\fW\u000f\u001c;%eU\u0011\u0011q\u0001\u0016\u0003m]D\u0011\"a\u0003\u0001#\u0003%\t!!\u0004\u0002\u001d\r|\u0007/\u001f\u0013eK\u001a\fW\u000f\u001c;%gU\u0011\u0011q\u0002\u0016\u0003\u000b^Dq!a\u0005\u0001\t\u0003\n)\"\u0001\u0005iCND7i\u001c3f)\t\t9\u0002E\u0002\u001e\u00033I1!a\u0007\u001f\u0005\rIe\u000e\u001e\u0005\b\u0003?\u0001A\u0011IA\u0011\u0003!!xn\u0015;sS:<G#A\u001d\t\u000f\u0005\u0015\u0002\u0001\"\u0011\u0002(\u00051Q-];bYN$2\u0001WA\u0015\u0011)\tY#a\t\u0002\u0002\u0003\u0007\u0011QF\u0001\u0004q\u0012\n\u0004cA\u000f\u00020%\u0019\u0011\u0011\u0007\u0010\u0003\u0007\u0005s\u0017\u0010C\u0004\u00026\u0001!\t%a\u000e\u0002\u001bA\u0014x\u000eZ;diB\u0013XMZ5y+\t\tI\u0004E\u0002\u0010\u0003wI!A\u0010\t\t\u000f\u0005}\u0002\u0001\"\u0011\u0002B\u0005a\u0001O]8ek\u000e$\u0018I]5usV\u0011\u0011q\u0003\u0005\b\u0003\u000b\u0002A\u0011IA$\u00039\u0001(o\u001c3vGR,E.Z7f]R$B!!\f\u0002J!Q\u00111FA\"\u0003\u0003\u0005\r!a\u0006\t\u000f\u00055\u0003\u0001\"\u0011\u0002P\u0005A1-\u00198FcV\fG\u000eF\u0002Y\u0003#B!\"a\u000b\u0002L\u0005\u0005\t\u0019AA\u0017\u000f%\t)FAA\u0001\u0012\u000b\t9&\u0001\nCS:\f'/\u001f*f]\u0012,'OU3tk2$\bcA)\u0002Z\u0019A\u0011AAA\u0001\u0012\u000b\tYf\u0005\u0004\u0002Z\u0005uC$\n\t\t\u0003?\n)g\u000b\u001cF!6\u0011\u0011\u0011\r\u0006\u0004\u0003Gr\u0012a\u0002:v]RLW.Z\u0005\u0005\u0003O\n\tGA\tBEN$(/Y2u\rVt7\r^5p]NBqATA-\t\u0003\tY\u0007\u0006\u0002\u0002X!A\u0011qDA-\t\u000b\ny\u0007\u0006\u0002\u0002:!Q\u00111OA-\u0003\u0003%\t)!\u001e\u0002\u000b\u0005\u0004\b\u000f\\=\u0015\u000fA\u000b9(!\u001f\u0002|!1\u0011&!\u001dA\u0002-Ba\u0001NA9\u0001\u00041\u0004BB\"\u0002r\u0001\u0007Q\t\u0003\u0006\u0002\u0000\u0005e\u0013\u0011!CA\u0003\u0003\u000bq!\u001e8baBd\u0017\u0010\u0006\u0003\u0002\u0004\u0006-\u0005\u0003B\u000f8\u0003\u000b\u0003b!HADWY*\u0015bAAE=\t1A+\u001e9mKNBq!!$\u0002~\u0001\u0007\u0001+A\u0002yIAB\u0001\"!%\u0002Z\u0011E\u00111S\u0001\fe\u0016\fGMU3t_24X\rF\u0001\u000f\u0001")
public class BinaryRenderResult
implements Cacheable,
ScalaObject,
Product,
Serializable {
    private final Resource res;
    private final Option<String> objKey;
    private final XFATemplate template;
    private Option<String> key;
    private long size;
    public volatile int bitmap$0;

    public static final Function1<Tuple3<Resource, Option<String>, XFATemplate>, BinaryRenderResult> tupled() {
        return BinaryRenderResult$.MODULE$.tupled();
    }

    public static final Function1<Resource, Function1<Option<String>, Function1<XFATemplate, BinaryRenderResult>>> curry() {
        return BinaryRenderResult$.MODULE$.curry();
    }

    public static final Function1<Resource, Function1<Option<String>, Function1<XFATemplate, BinaryRenderResult>>> curried() {
        return BinaryRenderResult$.MODULE$.curried();
    }

    public Resource res() {
        return this.res;
    }

    public Option<String> objKey() {
        return this.objKey;
    }

    public XFATemplate template() {
        return this.template;
    }

    /*
     * Enabled aggressive block sorting
     */
    @Override
    public boolean isExpired(Option<Cacheable> current) {
        Option<Cacheable> option;
        Option<Cacheable> option2 = current;
        if (option2 instanceof Some) {
            Some some = (Some)option2;
            Cacheable cacheable = (Cacheable)some.x();
            if (cacheable instanceof BinaryRenderResult) {
                option = new Some((Object)((BinaryRenderResult)cacheable).template());
                return this.template().isExpired(option);
            }
            if (cacheable instanceof XFATemplate) {
                option = current;
                return this.template().isExpired(option);
            }
        }
        option = None..MODULE$;
        return this.template().isExpired(option);
    }

    @Override
    public boolean isCacheable() {
        return this.template().isCacheable();
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public Option<String> key() {
        if ((this.bitmap$0 & 1) != 0) return this.key;
        BinaryRenderResult binaryRenderResult = this;
        synchronized (binaryRenderResult) {
            if ((this.bitmap$0 & 1) == 0) {
                this.key = this.objKey() == null ? this.template().key() : this.objKey();
                this.bitmap$0 |= 1;
            }
            return this.key;
        }
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    @Override
    public long size() {
        if ((this.bitmap$0 & 2) != 0) return this.size;
        BinaryRenderResult binaryRenderResult = this;
        synchronized (binaryRenderResult) {
            if ((this.bitmap$0 & 2) == 0) {
                this.size = this.res().size() + this.template().size();
                this.bitmap$0 |= 2;
            }
            return this.size;
        }
    }

    public BinaryRenderResult copy(Resource res, Option objKey, XFATemplate template2) {
        return new BinaryRenderResult(res, objKey, template2);
    }

    public XFATemplate copy$default$3() {
        return this.template();
    }

    public Option copy$default$2() {
        return this.objKey();
    }

    public Resource copy$default$1() {
        return this.res();
    }

    public int hashCode() {
        return ScalaRunTime..MODULE$._hashCode((Product)this);
    }

    public String toString() {
        return ScalaRunTime..MODULE$._toString((Product)this);
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    public boolean equals(Object object) {
        Option<String> option;
        XFATemplate template$1;
        Option<String> objKey$1;
        XFATemplate xFATemplate;
        if (this == object) return true;
        Object object2 = object;
        if (!(object2 instanceof BinaryRenderResult)) return false;
        BinaryRenderResult binaryRenderResult = (BinaryRenderResult)object2;
        Resource resource = binaryRenderResult.res();
        Resource res$1 = resource;
        if (!this.gd1$1(res$1, objKey$1 = (option = binaryRenderResult.objKey()), template$1 = (xFATemplate = binaryRenderResult.template()))) return false;
        boolean bl = ((BinaryRenderResult)object).canEqual((Object)this);
        if (!bl) return false;
        return true;
    }

    public String productPrefix() {
        return "BinaryRenderResult";
    }

    public int productArity() {
        return 3;
    }

    public Object productElement(int n) {
        Object object2;
        int n2 = n;
        switch (n2) {
            Object object2;
            default: {
                throw new IndexOutOfBoundsException(BoxesRunTime.boxToInteger((int)n).toString());
            }
            case 0: {
                object2 = this.res();
                break;
            }
            case 2: {
                object2 = this.template();
                break;
            }
            case 1: {
                object2 = this.objKey();
            }
        }
        return object2;
    }

    public boolean canEqual(Object object) {
        return object instanceof BinaryRenderResult;
    }

    /*
     * Enabled force condition propagation
     * Lifted jumps to return sites
     */
    private final boolean gd1$1(Resource resource, Option option, XFATemplate xFATemplate) {
        Resource resource2 = resource;
        Resource resource3 = this.res();
        if (resource2 == null) {
            if (resource3 != null) {
                return false;
            }
        } else if (!resource2.equals(resource3)) return false;
        Option option2 = option;
        Option<String> option3 = this.objKey();
        if (option2 == null) {
            if (option3 != null) {
                return false;
            }
        } else if (!option2.equals(option3)) return false;
        XFATemplate xFATemplate2 = xFATemplate;
        XFATemplate xFATemplate3 = this.template();
        if (xFATemplate2 == null) {
            if (xFATemplate3 == null) return true;
            return false;
        } else {
            if (!xFATemplate2.equals(xFATemplate3)) return false;
            return true;
        }
    }

    public BinaryRenderResult(Resource res, Option<String> objKey, XFATemplate template2) {
        this.res = res;
        this.objKey = objKey;
        this.template = template2;
        Product.class.$init$((Product)this);
    }
}