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