// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from primtypes.djinni

package com.dropbox.djinni.test;

import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;

public final class AssortedPrimitives {


    /*package*/ final boolean mB;

    /*package*/ final byte mEight;

    /*package*/ final short mSixteen;

    /*package*/ final int mThirtytwo;

    /*package*/ final long mSixtyfour;

    /*package*/ final double mFsixtyfour;

    /*package*/ final Boolean mOB;

    /*package*/ final Byte mOEight;

    /*package*/ final Short mOSixteen;

    /*package*/ final Integer mOThirtytwo;

    /*package*/ final Long mOSixtyfour;

    /*package*/ final Double mOFsixtyfour;

    public AssortedPrimitives(
            boolean b,
            byte eight,
            short sixteen,
            int thirtytwo,
            long sixtyfour,
            double fsixtyfour,
            @CheckForNull Boolean oB,
            @CheckForNull Byte oEight,
            @CheckForNull Short oSixteen,
            @CheckForNull Integer oThirtytwo,
            @CheckForNull Long oSixtyfour,
            @CheckForNull Double oFsixtyfour) {
        this.mB = b;
        this.mEight = eight;
        this.mSixteen = sixteen;
        this.mThirtytwo = thirtytwo;
        this.mSixtyfour = sixtyfour;
        this.mFsixtyfour = fsixtyfour;
        this.mOB = oB;
        this.mOEight = oEight;
        this.mOSixteen = oSixteen;
        this.mOThirtytwo = oThirtytwo;
        this.mOSixtyfour = oSixtyfour;
        this.mOFsixtyfour = oFsixtyfour;
    }

    public boolean getB() {
        return mB;
    }

    public byte getEight() {
        return mEight;
    }

    public short getSixteen() {
        return mSixteen;
    }

    public int getThirtytwo() {
        return mThirtytwo;
    }

    public long getSixtyfour() {
        return mSixtyfour;
    }

    public double getFsixtyfour() {
        return mFsixtyfour;
    }

    @CheckForNull
    public Boolean getOB() {
        return mOB;
    }

    @CheckForNull
    public Byte getOEight() {
        return mOEight;
    }

    @CheckForNull
    public Short getOSixteen() {
        return mOSixteen;
    }

    @CheckForNull
    public Integer getOThirtytwo() {
        return mOThirtytwo;
    }

    @CheckForNull
    public Long getOSixtyfour() {
        return mOSixtyfour;
    }

    @CheckForNull
    public Double getOFsixtyfour() {
        return mOFsixtyfour;
    }

    @Override
    public boolean equals(@CheckForNull Object obj) {
        if (!(obj instanceof AssortedPrimitives)) {
            return false;
        }
        AssortedPrimitives other = (AssortedPrimitives) obj;
        return this.mB == other.mB &&
                this.mEight == other.mEight &&
                this.mSixteen == other.mSixteen &&
                this.mThirtytwo == other.mThirtytwo &&
                this.mSixtyfour == other.mSixtyfour &&
                this.mFsixtyfour == other.mFsixtyfour &&
                ((this.mOB == null && other.mOB == null) || (this.mOB != null && this.mOB.equals(other.mOB))) &&
                ((this.mOEight == null && other.mOEight == null) || (this.mOEight != null && this.mOEight.equals(other.mOEight))) &&
                ((this.mOSixteen == null && other.mOSixteen == null) || (this.mOSixteen != null && this.mOSixteen.equals(other.mOSixteen))) &&
                ((this.mOThirtytwo == null && other.mOThirtytwo == null) || (this.mOThirtytwo != null && this.mOThirtytwo.equals(other.mOThirtytwo))) &&
                ((this.mOSixtyfour == null && other.mOSixtyfour == null) || (this.mOSixtyfour != null && this.mOSixtyfour.equals(other.mOSixtyfour))) &&
                ((this.mOFsixtyfour == null && other.mOFsixtyfour == null) || (this.mOFsixtyfour != null && this.mOFsixtyfour.equals(other.mOFsixtyfour)));
    }
}
