001// Generated by delombok at Fri Mar 03 18:26:02 UTC 2023
002/*
003 * Licensed to the author under one or more
004 * contributor license agreements. See the NOTICE file distributed with
005 * this work for additional information regarding copyright ownership.
006 * The ASF licenses this file to You under the Apache License, Version 2.0
007 * (the "License"); you may not use this file except in compliance with
008 * the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing, software
013 * distributed under the License is distributed on an "AS IS" BASIS,
014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
015 * See the License for the specific language governing permissions and
016 * limitations under the License.
017 */
018package de.cuioss.test.generator.internal.net.java.quickcheck.collection;
019
020/**
021 * A tuple of three values.
022 *
023 * @param <A>
024 *            type of first entry
025 * @param <B>
026 *            type of second entry
027 * @param <C>
028 *            type of third entry
029 */
030public class Triple<A, B, C> extends Pair<A, B> {
031    private final C third;
032
033    public Triple(A first, B second, C third) {
034        super(first, second);
035        this.third = third;
036    }
037
038    @java.lang.Override
039    @java.lang.SuppressWarnings("all")
040    @lombok.Generated
041    public boolean equals(final java.lang.Object o) {
042        if (o == this) return true;
043        if (!(o instanceof Triple)) return false;
044        final Triple<?, ?, ?> other = (Triple<?, ?, ?>) o;
045        if (!other.canEqual((java.lang.Object) this)) return false;
046        if (!super.equals(o)) return false;
047        final java.lang.Object this$third = this.getThird();
048        final java.lang.Object other$third = other.getThird();
049        if (this$third == null ? other$third != null : !this$third.equals(other$third)) return false;
050        return true;
051    }
052
053    @java.lang.SuppressWarnings("all")
054    @lombok.Generated
055    protected boolean canEqual(final java.lang.Object other) {
056        return other instanceof Triple;
057    }
058
059    @java.lang.Override
060    @java.lang.SuppressWarnings("all")
061    @lombok.Generated
062    public int hashCode() {
063        final int PRIME = 59;
064        int result = super.hashCode();
065        final java.lang.Object $third = this.getThird();
066        result = result * PRIME + ($third == null ? 43 : $third.hashCode());
067        return result;
068    }
069
070    @java.lang.Override
071    @java.lang.SuppressWarnings("all")
072    @lombok.Generated
073    public java.lang.String toString() {
074        return "Triple(super=" + super.toString() + ", third=" + this.getThird() + ")";
075    }
076
077    @java.lang.SuppressWarnings("all")
078    @lombok.Generated
079    public C getThird() {
080        return this.third;
081    }
082}