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

com.g2forge.alexandria.java.function.ISupplier Maven / Gradle / Ivy

There is a newer version: 0.0.18
Show newest version
package com.g2forge.alexandria.java.function;

import java.util.function.Supplier;

@FunctionalInterface
public interface ISupplier extends Supplier {
	public static  ISupplier create(ISupplier supplier) {
		return supplier;
	}
	
	public static  ISupplier create(T value) {
		return new LiteralSupplier<>(value);
	}

	public default  IFunction1 toFunction() {
		return t -> get();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy