Home » activemq-parent-5.3.1-source-release » org.apache » activemq » kaha » impl » index » tree » [javadoc | source]

    1   /**
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
   10    *
   11    * Unless required by applicable law or agreed to in writing, software
   12    * distributed under the License is distributed on an "AS IS" BASIS,
   13    * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   14    * See the License for the specific language governing permissions and
   15    * limitations under the License.
   16    */
   17   package org.apache.activemq.kaha.impl.index.tree;
   18   
   19   /**
   20    * A conglomarate used for return results from a tree lookup
   21    * 
   22    * @version $Revision: 1.1.1.1 $
   23    */
   24   class TreePageEntry {
   25   
   26       private TreeEntry treeEntry;
   27       private TreePage treePage;
   28       private TreePage.Flavour flavour;
   29       private int index = -1;
   30   
   31       TreePageEntry(TreeEntry treeEntry, TreePage treePage, TreePage.Flavour flavour, int index) {
   32           this.treeEntry = treeEntry;
   33           this.treePage = treePage;
   34           this.flavour = flavour;
   35           this.index = index;
   36       }
   37   
   38       /**
   39        * @return the flavour
   40        */
   41       TreePage.Flavour getFlavour() {
   42           return this.flavour;
   43       }
   44   
   45       /**
   46        * @param flavour the flavour to set
   47        */
   48       void setFlavour(TreePage.Flavour flavour) {
   49           this.flavour = flavour;
   50       }
   51   
   52       /**
   53        * @return the treePage
   54        */
   55       TreePage getTreePage() {
   56           return this.treePage;
   57       }
   58   
   59       /**
   60        * @param treePage the treePage to set
   61        */
   62       void setTreePage(TreePage treePage) {
   63           this.treePage = treePage;
   64       }
   65   
   66       /**
   67        * @return the index
   68        */
   69       public int getIndex() {
   70           return this.index;
   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        * @return the treeEntry
   82        */
   83       public TreeEntry getTreeEntry() {
   84           return this.treeEntry;
   85       }
   86   
   87       /**
   88        * @param treeEntry the treeEntry to set
   89        */
   90       public void setTreeEntry(TreeEntry treeEntry) {
   91           this.treeEntry = treeEntry;
   92       }
   93   }

Home » activemq-parent-5.3.1-source-release » org.apache » activemq » kaha » impl » index » tree » [javadoc | source]