| /********************************************************************* |
| * Copyright (c) 2016 Boeing |
| * |
| * 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: |
| * Boeing - initial API and implementation |
| **********************************************************************/ |
| |
| package org.eclipse.osee.orcs; |
| |
| import org.eclipse.osee.framework.jdk.core.type.Id; |
| |
| /** |
| * @author Angel Avila |
| */ |
| public interface KeyValueOps { |
| |
| Long putIfAbsent(String value); |
| |
| String getByKey(Long key); |
| |
| String getByKey(Id key); |
| |
| Long getByValue(String value); |
| |
| boolean putByKey(Long key, String value); |
| |
| boolean putByKey(Id key, String value); |
| } |