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

org.aksw.commons.util.slot.Slot Maven / Gradle / Ivy

There is a newer version: 0.9.9
Show newest version
package org.aksw.commons.util.slot;

import java.util.function.Supplier;

public interface Slot

extends AutoCloseable { Slot

setSupplier(Supplier

partSupplier); Supplier

getSupplier(); // TODO Rename to set/getValue? default P get() { Supplier

supplier = getSupplier(); P result = supplier == null ? null : supplier.get(); return result; } default Slot

set(P part) { return setSupplier(() -> part); } @Override void close(); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy