001// Generated by delombok at Fri Apr 02 06:02:09 UTC 2021
002package org.projectlombok.test;
003
004//import lombok.NonNull;
005import javax.validation.constraints.NotNull;
006
007public class NullDataExample {
008    //@NonNull
009    @NotNull
010    private String dataOne;
011    @NotNull
012    private String dataTwo;
013
014    @java.lang.SuppressWarnings("all")
015    public NullDataExample() {
016    }
017
018    @java.lang.SuppressWarnings("all")
019    public String getDataOne() {
020        return this.dataOne;
021    }
022
023    @java.lang.SuppressWarnings("all")
024    public String getDataTwo() {
025        return this.dataTwo;
026    }
027
028    @java.lang.SuppressWarnings("all")
029    public void setDataOne(final String dataOne) {
030        this.dataOne = dataOne;
031    }
032
033    @java.lang.SuppressWarnings("all")
034    public void setDataTwo(final String dataTwo) {
035        this.dataTwo = dataTwo;
036    }
037
038    @java.lang.Override
039    @java.lang.SuppressWarnings("all")
040    public boolean equals(final java.lang.Object o) {
041        if (o == this) return true;
042        if (!(o instanceof NullDataExample)) return false;
043        final NullDataExample other = (NullDataExample) o;
044        if (!other.canEqual((java.lang.Object) this)) return false;
045        final java.lang.Object this$dataOne = this.getDataOne();
046        final java.lang.Object other$dataOne = other.getDataOne();
047        if (this$dataOne == null ? other$dataOne != null : !this$dataOne.equals(other$dataOne)) return false;
048        final java.lang.Object this$dataTwo = this.getDataTwo();
049        final java.lang.Object other$dataTwo = other.getDataTwo();
050        if (this$dataTwo == null ? other$dataTwo != null : !this$dataTwo.equals(other$dataTwo)) return false;
051        return true;
052    }
053
054    @java.lang.SuppressWarnings("all")
055    protected boolean canEqual(final java.lang.Object other) {
056        return other instanceof NullDataExample;
057    }
058
059    @java.lang.Override
060    @java.lang.SuppressWarnings("all")
061    public int hashCode() {
062        final int PRIME = 59;
063        int result = 1;
064        final java.lang.Object $dataOne = this.getDataOne();
065        result = result * PRIME + ($dataOne == null ? 43 : $dataOne.hashCode());
066        final java.lang.Object $dataTwo = this.getDataTwo();
067        result = result * PRIME + ($dataTwo == null ? 43 : $dataTwo.hashCode());
068        return result;
069    }
070
071    @java.lang.Override
072    @java.lang.SuppressWarnings("all")
073    public java.lang.String toString() {
074        return "NullDataExample(dataOne=" + this.getDataOne() + ", dataTwo=" + this.getDataTwo() + ")";
075    }
076}