diff --git a/common/source/java/ch/systemsx/cisd/common/action/IMapper.java b/common/source/java/ch/systemsx/cisd/common/action/IMapper.java new file mode 100644 index 0000000000000000000000000000000000000000..40127dd7ebf156f34b6115b24cf7da91cf9c0bcc --- /dev/null +++ b/common/source/java/ch/systemsx/cisd/common/action/IMapper.java @@ -0,0 +1,27 @@ +/* + * Copyright 2012 ETH Zuerich, CISD + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package ch.systemsx.cisd.common.action; + +/** + * The interface for the map action - convert item of one type into another. + * + * @author Jakub Straszewski + */ +public interface IMapper<T, V> +{ + V map(T item); +}