KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > activemq > kaha > impl > index > tree > TreePageEntry


1 /**
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE
4  * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file
5  * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the
6  * License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
11  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
12  * specific language governing permissions and limitations under the License.
13  */

14
15 package org.apache.activemq.kaha.impl.index.tree;
16
17 /**
18 * A conglomarate used for return results from a tree lookup
19 *
20 * @version $Revision: 1.1.1.1 $
21 */

22 class TreePageEntry{
23
24     private TreeEntry treeEntry;
25     private TreePage treePage;
26     private TreePage.Flavour flavour;
27     private int index = -1;
28
29     TreePageEntry(TreeEntry treeEntry,TreePage treePage,TreePage.Flavour flavour, int index){
30         this.treeEntry = treeEntry;
31         this.treePage=treePage;
32         this.flavour=flavour;
33         this.index = index;
34     }
35
36     /**
37      * @return the flavour
38      */

39     TreePage.Flavour getFlavour(){
40         return this.flavour;
41     }
42
43     /**
44      * @param flavour the flavour to set
45      */

46     void setFlavour(TreePage.Flavour flavour){
47         this.flavour=flavour;
48     }
49
50     /**
51      * @return the treePage
52      */

53     TreePage getTreePage(){
54         return this.treePage;
55     }
56
57     /**
58      * @param treePage the treePage to set
59      */

60     void setTreePage(TreePage treePage){
61         this.treePage=treePage;
62     }
63
64     
65     /**
66      * @return the index
67      */

68     public int getIndex(){
69         return this.index;
70     }
71
72     
73     /**
74      * @param index the index to set
75      */

76     public void setIndex(int index){
77         this.index=index;
78     }
79
80     
81     /**
82      * @return the treeEntry
83      */

84     public TreeEntry getTreeEntry(){
85         return this.treeEntry;
86     }
87
88     
89     /**
90      * @param treeEntry the treeEntry to set
91      */

92     public void setTreeEntry(TreeEntry treeEntry){
93         this.treeEntry=treeEntry;
94     }
95 }
96
Popular Tags