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

com.basistech.rosette.apimodel.UnfieldedAddress Maven / Gradle / Ivy

The newest version!
// Generated by delombok at Fri Nov 15 11:56:46 CST 2024
/*
 * Copyright 2022 Basis Technology Corp.
 *
 * 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 com.basistech.rosette.apimodel;

public final class UnfieldedAddress implements IAddress {
    /**
     * return the address
     */
    private final String address;

    public UnfieldedAddress(String address) {
        this.address = address;
    }

    @Override
    public boolean fielded() {
        return false;
    }


    @SuppressWarnings("all")
    public static class UnfieldedAddressBuilder {
        @SuppressWarnings("all")
        private String address;

        @SuppressWarnings("all")
        UnfieldedAddressBuilder() {
        }

        /**
         * return the address
         * @return {@code this}.
         */
        @SuppressWarnings("all")
        public UnfieldedAddress.UnfieldedAddressBuilder address(final String address) {
            this.address = address;
            return this;
        }

        @SuppressWarnings("all")
        public UnfieldedAddress build() {
            return new UnfieldedAddress(this.address);
        }

        @Override
        @SuppressWarnings("all")
        public String toString() {
            return "UnfieldedAddress.UnfieldedAddressBuilder(address=" + this.address + ")";
        }
    }

    @SuppressWarnings("all")
    public static UnfieldedAddress.UnfieldedAddressBuilder builder() {
        return new UnfieldedAddress.UnfieldedAddressBuilder();
    }

    /**
     * return the address
     */
    @SuppressWarnings("all")
    public String getAddress() {
        return this.address;
    }

    @Override
    @SuppressWarnings("all")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof UnfieldedAddress)) return false;
        final UnfieldedAddress other = (UnfieldedAddress) o;
        final Object this$address = this.getAddress();
        final Object other$address = other.getAddress();
        if (this$address == null ? other$address != null : !this$address.equals(other$address)) return false;
        return true;
    }

    @Override
    @SuppressWarnings("all")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $address = this.getAddress();
        result = result * PRIME + ($address == null ? 43 : $address.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    public String toString() {
        return "UnfieldedAddress(address=" + this.getAddress() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy