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

com.softicar.platform.common.container.tuple.Tuple0 Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.container.tuple;

/**
 * This is the empty tuple.
 * 
 * @author Oliver Richers
 */
public final class Tuple0 extends AbstractTuple {

	public  Tuple1 plus(T0 element) {

		return new Tuple1<>(element);
	}

	@Override
	public int size() {

		return 0;
	}

	@Override
	protected Object getElement(int index) {

		throw new UnsupportedOperationException("Cannot access the elements of the empty tuple.");
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy