All Downloads are FREE. Search and download functionalities are using the official Maven repository.

win.doyto.query.test.TestPatch Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
// Generated by delombok at Sat Jan 27 04:38:03 UTC 2024
/*
 * Copyright © 2019-2024 Forb Yuan
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package win.doyto.query.test;

import win.doyto.query.annotation.Clause;

/**
 * TestPatch
 *
 * @author f0rb on 2023/1/11
 * @since 1.0.1
 */
public class TestPatch extends TestEntity {
    private Integer scoreAe;
    @Clause("score = score - ?")
    private Integer scoreDec;


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static abstract class TestPatchBuilder> extends TestEntity.TestEntityBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Integer scoreAe;
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private Integer scoreDec;

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected abstract B self();

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public abstract C build();

        /**
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B scoreAe(final Integer scoreAe) {
            this.scoreAe = scoreAe;
            return self();
        }

        /**
         * @return {@code this}.
         */
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public B scoreDec(final Integer scoreDec) {
            this.scoreDec = scoreDec;
            return self();
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public java.lang.String toString() {
            return "TestPatch.TestPatchBuilder(super=" + super.toString() + ", scoreAe=" + this.scoreAe + ", scoreDec=" + this.scoreDec + ")";
        }
    }


    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    private static final class TestPatchBuilderImpl extends TestPatch.TestPatchBuilder {
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        private TestPatchBuilderImpl() {
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        protected TestPatch.TestPatchBuilderImpl self() {
            return this;
        }

        @java.lang.Override
        @java.lang.SuppressWarnings("all")
        @lombok.Generated
        public TestPatch build() {
            return new TestPatch(this);
        }
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected TestPatch(final TestPatch.TestPatchBuilder b) {
        super(b);
        this.scoreAe = b.scoreAe;
        this.scoreDec = b.scoreDec;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public static TestPatch.TestPatchBuilder builder() {
        return new TestPatch.TestPatchBuilderImpl();
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Integer getScoreAe() {
        return this.scoreAe;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public Integer getScoreDec() {
        return this.scoreDec;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setScoreAe(final Integer scoreAe) {
        this.scoreAe = scoreAe;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public void setScoreDec(final Integer scoreDec) {
        this.scoreDec = scoreDec;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public java.lang.String toString() {
        return "TestPatch(scoreAe=" + this.getScoreAe() + ", scoreDec=" + this.getScoreDec() + ")";
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public boolean equals(final java.lang.Object o) {
        if (o == this) return true;
        if (!(o instanceof TestPatch)) return false;
        final TestPatch other = (TestPatch) o;
        if (!other.canEqual((java.lang.Object) this)) return false;
        if (!super.equals(o)) return false;
        final java.lang.Object this$scoreAe = this.getScoreAe();
        final java.lang.Object other$scoreAe = other.getScoreAe();
        if (this$scoreAe == null ? other$scoreAe != null : !this$scoreAe.equals(other$scoreAe)) return false;
        final java.lang.Object this$scoreDec = this.getScoreDec();
        final java.lang.Object other$scoreDec = other.getScoreDec();
        if (this$scoreDec == null ? other$scoreDec != null : !this$scoreDec.equals(other$scoreDec)) return false;
        return true;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    protected boolean canEqual(final java.lang.Object other) {
        return other instanceof TestPatch;
    }

    @java.lang.Override
    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final java.lang.Object $scoreAe = this.getScoreAe();
        result = result * PRIME + ($scoreAe == null ? 43 : $scoreAe.hashCode());
        final java.lang.Object $scoreDec = this.getScoreDec();
        result = result * PRIME + ($scoreDec == null ? 43 : $scoreDec.hashCode());
        return result;
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public TestPatch() {
    }

    @java.lang.SuppressWarnings("all")
    @lombok.Generated
    public TestPatch(final Integer scoreAe, final Integer scoreDec) {
        this.scoreAe = scoreAe;
        this.scoreDec = scoreDec;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy