2 * ============LICENSE_START====================================================
4 * ===========================================================================
5 * Copyright (c) 2018 AT&T Intellectual Property. All rights reserved.
6 * ===========================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END====================================================
25 * Created on: Dec 5, 2008
26 * Created by: Jonathan
28 * (c) 2008 SBC Knowledge Ventures, L.P. All rights reserved.
29 *******************************************************************
30 * RESTRICTED - PROPRIETARY INFORMATION The Information contained
31 * herein is for use only by authorized employees of AT&T Services,
32 * Inc., and authorized Affiliates of AT&T Services, Inc., and is
33 * not for general distribution within or outside the respective
35 *******************************************************************
37 package org.onap.aaf.misc.env;
40 * Slot's are used to store and retrieve data in the transaction's State object.
42 public final class Slot {
45 * The name of the Slot.
47 private final String key;
50 * The index of the State's local map associated with this Slot.
55 * Constructs a new Slot.
58 * The index of State's local map this Slot is associated with.
60 * The name of the Slot's key.
62 Slot(int index, String name) {
68 * Debug method only to print key=slot pairs.
70 public String toString() {
71 return key + '=' + slot;
75 * Returns the name of this Slot's key.
78 * The name of this Slot's key.
80 public String getKey() {
85 * Put an Object into the slot on the State
89 public void put(Object[] state, Object obj) {
94 * Get an Object from the slot on the State
98 public Object get(Object[] state) {