-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#28 Adapt Chronograph for Passage Operator
Rework "Structure" to "Storage" Signed-off-by: Alexander Fedorov <[email protected]>
- Loading branch information
1 parent
6bd2da9
commit 0e228cf
Showing
3 changed files
with
73 additions
and
73 deletions.
There are no files selected for viewing
49 changes: 0 additions & 49 deletions
49
...g.eclipse.chronograph.api/src/org/eclipse/chronograph/internal/api/data/BrickAdapter.java
This file was deleted.
Oops, something went wrong.
73 changes: 73 additions & 0 deletions
73
...es/org.eclipse.chronograph.api/src/org/eclipse/chronograph/internal/api/data/Storage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2020 ArSysOp | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which is available at | ||
* https://www.eclipse.org/legal/epl-2.0/. | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* ArSysOp - initial API and implementation | ||
*******************************************************************************/ | ||
package org.eclipse.chronograph.internal.api.data; | ||
|
||
import java.util.function.Function; | ||
import java.util.function.Predicate; | ||
|
||
/** | ||
* | ||
* Provides access to a remote storage with data objects | ||
* | ||
*/ | ||
public interface Storage { | ||
|
||
/** | ||
* Provides function to retrieve domain objects of the given type with given | ||
* predicate from the remote storage | ||
* | ||
* @param <I> | ||
* @param type | ||
* @return | ||
*/ | ||
<I> Function<Predicate<I>, Iterable<I>> data(Class<I> type); | ||
|
||
/** | ||
* Identification function for the | ||
* | ||
* @param <D> | ||
* @param type | ||
* @return | ||
*/ | ||
<D> Function<D, String> identification(Class<D> type); | ||
|
||
/** | ||
* "Content" function for the given input to use for grouping | ||
* | ||
* @param <P> | ||
* @param <C> | ||
* @param parent | ||
* @param child | ||
* @return | ||
*/ | ||
<P, C> Function<P, Iterable<C>> content(Class<P> parent, Class<C> child); | ||
|
||
/** | ||
* Start pointer function to use for representation | ||
* | ||
* @param <D> | ||
* @param type | ||
* @return | ||
*/ | ||
<D> Function<D, Integer> start(Class<D> type); | ||
|
||
/** | ||
* End pointer function to use for representation | ||
* | ||
* @param <D> | ||
* @param type | ||
* @return | ||
*/ | ||
<D> Function<D, Integer> end(Class<D> type); | ||
|
||
} |
24 changes: 0 additions & 24 deletions
24
.../org.eclipse.chronograph.api/src/org/eclipse/chronograph/internal/api/data/Structure.java
This file was deleted.
Oops, something went wrong.