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

com.unit16.z.indexed.Empty Maven / Gradle / Ivy

package com.unit16.z.indexed;

import java.util.Iterator;

import com.google.common.collect.ImmutableSet;

final class Empty
extends DSL
{
	@Override
	public M get(int i) { throw new ArrayIndexOutOfBoundsException(i); }

	@Override
	public int size() { return 0; }

	@Override
	public Iterator iterator() { return ImmutableSet.of().iterator(); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy