org.rapidpm.frp.model.serial.Sept Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rapidpm-functional-reactive Show documentation
Show all versions of rapidpm-functional-reactive Show documentation
Functional Reactive with Core Java
/**
* Copyright © 2017 Sven Ruppert ([email protected])
*
* 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 org.rapidpm.frp.model.serial;
import java.io.Serializable;
/**
* Sept class.
*
* @author svenruppert
* @version $Id: $Id
*/
public class Sept {
private T1 t1;
private T2 t2;
private T3 t3;
private T4 t4;
private T5 t5;
private T6 t6;
private T7 t7;
/**
* Constructor for Sept.
*
* @param t1 a T1 object.
* @param t2 a T2 object.
* @param t3 a T3 object.
* @param t4 a T4 object.
* @param t5 a T5 object.
* @param t6 a T6 object.
* @param t7 a T7 object.
*/
public Sept(T1 t1 , T2 t2 , T3 t3 , T4 t4 , T5 t5 , T6 t6 , T7 t7) {
this.t1 = t1;
this.t2 = t2;
this.t3 = t3;
this.t4 = t4;
this.t5 = t5;
this.t6 = t6;
this.t7 = t7;
}
/** {@inheritDoc} */
@Override
public boolean equals(Object o) {
if (this == o) return true;
if (! (o instanceof Sept)) return false;
Sept, ?, ?, ?, ?, ?, ?> sept = (Sept, ?, ?, ?, ?, ?, ?>) o;
if (t1 != null ? ! t1.equals(sept.t1) : sept.t1 != null) return false;
if (t2 != null ? ! t2.equals(sept.t2) : sept.t2 != null) return false;
if (t3 != null ? ! t3.equals(sept.t3) : sept.t3 != null) return false;
if (t4 != null ? ! t4.equals(sept.t4) : sept.t4 != null) return false;
if (t5 != null ? ! t5.equals(sept.t5) : sept.t5 != null) return false;
if (t6 != null ? ! t6.equals(sept.t6) : sept.t6 != null) return false;
return t7 != null ? t7.equals(sept.t7) : sept.t7 == null;
}
/** {@inheritDoc} */
@Override
public int hashCode() {
int result = t1 != null ? t1.hashCode() : 0;
result = 31 * result + (t2 != null ? t2.hashCode() : 0);
result = 31 * result + (t3 != null ? t3.hashCode() : 0);
result = 31 * result + (t4 != null ? t4.hashCode() : 0);
result = 31 * result + (t5 != null ? t5.hashCode() : 0);
result = 31 * result + (t6 != null ? t6.hashCode() : 0);
result = 31 * result + (t7 != null ? t7.hashCode() : 0);
return result;
}
/** {@inheritDoc} */
@Override
public String toString() {
return "Sept{" +
"t1=" + t1 +
", t2=" + t2 +
", t3=" + t3 +
", t4=" + t4 +
", t5=" + t5 +
", t6=" + t6 +
", t7=" + t7 +
'}';
}
/**
* next.
*
* @param t1 a T1 object.
* @param t2 a T2 object.
* @param t3 a T3 object.
* @param t4 a T4 object.
* @param t5 a T5 object.
* @param t6 a T6 object.
* @param t7 a T7 object.
* @param a T1 object.
* @param a T2 object.
* @param a T3 object.
* @param a T4 object.
* @param a T5 object.
* @param a T6 object.
* @param a T7 object.
* @return a {@link org.rapidpm.frp.model.serial.Sept} object.
*/
public static Sept next(final T1 t1 , final T2 t2 , final T3 t3 ,
final T4 t4 , final T5 t5 , final T6 t6 , final T7 t7) {
return new Sept<>(t1 , t2 , t3 , t4 , t5 , t6 , t7);
}
/**
* Getter for the field t1
.
*
* @return a T1 object.
*/
public T1 getT1() {
return t1;
}
/**
* Getter for the field t2
.
*
* @return a T2 object.
*/
public T2 getT2() {
return t2;
}
/**
* Getter for the field t3
.
*
* @return a T3 object.
*/
public T3 getT3() {
return t3;
}
/**
* Getter for the field t4
.
*
* @return a T4 object.
*/
public T4 getT4() {
return t4;
}
/**
* Getter for the field t5
.
*
* @return a T5 object.
*/
public T5 getT5() {
return t5;
}
/**
* Getter for the field t6
.
*
* @return a T6 object.
*/
public T6 getT6() {
return t6;
}
/**
* Getter for the field t7
.
*
* @return a T7 object.
*/
public T7 getT7() {
return t7;
}
}