X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db%2Fsrc%2Forg%2Fsimantics%2Fdb%2Ffunction%2FDbSupplier.java;h=38dceb90ee3f5eca04b31088bad5d89aeb29ce9b;hb=b2bb3ff110b5bf929b6d676f0122a15a43358440;hp=1c1436ca5c0276165fc1915d13ac275548a11b4c;hpb=969bd23cab98a79ca9101af33334000879fb60c5;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db/src/org/simantics/db/function/DbSupplier.java b/bundles/org.simantics.db/src/org/simantics/db/function/DbSupplier.java index 1c1436ca5..38dceb90e 100644 --- a/bundles/org.simantics.db/src/org/simantics/db/function/DbSupplier.java +++ b/bundles/org.simantics.db/src/org/simantics/db/function/DbSupplier.java @@ -1,37 +1,37 @@ -/******************************************************************************* - * Copyright (c) 2016 Association for Decentralized Information Management - * in Industry THTH ry. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Semantum Oy - initial API and implementation - *******************************************************************************/ -package org.simantics.db.function; - -import org.simantics.db.exception.DatabaseException; - -/** - * Represents a supplier of results for database operations. - * - *

There is no requirement that a new or distinct result be returned each - * time the supplier is invoked. - * - * @param the type of results supplied by this supplier - * - * @author Tuukka Lehtonen - * @since 1.22.1 & 1.24.0 - */ -@FunctionalInterface -public interface DbSupplier { - - /** - * Performs this operation on the given argument. - * - * @param t the input argument - */ - T get() throws DatabaseException; - -} +/******************************************************************************* + * Copyright (c) 2016 Association for Decentralized Information Management + * in Industry THTH ry. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Semantum Oy - initial API and implementation + *******************************************************************************/ +package org.simantics.db.function; + +import org.simantics.db.exception.DatabaseException; + +/** + * Represents a supplier of results for database operations. + * + *

There is no requirement that a new or distinct result be returned each + * time the supplier is invoked. + * + * @param the type of results supplied by this supplier + * + * @author Tuukka Lehtonen + * @since 1.22.1 & 1.24.0 + */ +@FunctionalInterface +public interface DbSupplier { + + /** + * Performs this operation on the given argument. + * + * @param t the input argument + */ + T get() throws DatabaseException; + +}