Skip to content

Commit

Permalink
#28 Adapt Chronograph for Passage Operator
Browse files Browse the repository at this point in the history
Rework "Structure" to "Storage"

Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
  • Loading branch information
ruspl-afed committed May 16, 2020
1 parent 6bd2da9 commit 0e228cf
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 73 deletions.

This file was deleted.

@@ -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);

}

This file was deleted.

0 comments on commit 0e228cf

Please sign in to comment.