Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Copyright 2017 ~ 2025 the original author or authors. James Wong
*
* 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.wl4g.infra.common.lang.tuples;
import java.util.Arrays;
import java.util.List;
/**
* {@link Tuple9}
*
* @author James Wong
* @version 2023-01-21
* @since v3.1.0
*/
public class Tuple9 extends Tuple8 {
private static final long serialVersionUID = -6651344183217701765L;
private Object item9;
public Tuple9() {
}
public Tuple9(Object item1) {
this(item1, null);
}
public Tuple9(Object item1, Object item2) {
super(item1, item2);
}
public Tuple9(Object item1, Object item2, Object item3) {
super(item1, item2, item3);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4) {
super(item1, item2, item3, item4);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4, Object item5) {
super(item1, item2, item3, item4, item5);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4, Object item5, Object item6) {
super(item1, item2, item3, item4, item5, item6);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4, Object item5, Object item6, Object item7) {
super(item1, item2, item3, item4, item5, item6, item7);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4, Object item5, Object item6, Object item7,
Object item8) {
super(item1, item2, item3, item4, item5, item6, item7, item8);
}
public Tuple9(Object item1, Object item2, Object item3, Object item4, Object item5, Object item6, Object item7, Object item8,
Object item9) {
super(item1, item2, item3, item4, item5, item6, item7, item8);
setItem9(item8);
}
@SuppressWarnings("unchecked")
public V getItem9() {
return (V) item9;
}
public void setItem9(V item9) {
this.item9 = item9;
}
public Tuple9 withItem9(V item9) {
setItem9(item9);
return this;
}
@Override
public Object nth(int index) {
assertIndexInBounds(index);
if (index == 8) {
return item9;
} else {
return super.nth(index);
}
}
@Override
public List