/* * Copyright 2016 The Simple File Server Authors * * 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.sfs.rx; public class Holder4<A, B, C, D> { public A value0; public B value1; public C value2; public D value3; public Holder4() { } public Holder4(A value0, B value1, C value2, D value3) { this.value0 = value0; this.value1 = value1; this.value2 = value2; this.value3 = value3; } public Holder4<A, B, C, D> value0(A value) { this.value0 = value; return this; } public Holder4<A, B, C, D> value1(B value) { this.value1 = value; return this; } public Holder4<A, B, C, D> value2(C value) { this.value2 = value; return this; } public Holder4<A, B, C, D> value3(D value) { this.value3 = value; return this; } public A value0() { return value0; } public B value1() { return value1; } public C value2() { return value2; } public D value3() { return value3; } @Override public String toString() { return "Holder4{" + "value0=" + value0 + ", value1=" + value1 + ", value2=" + value2 + ", value3=" + value3 + '}'; } }