ariba.util.core
Class GrowOnlyGridTable

java.lang.Object
  extended by ariba.util.core.GrowOnlyGridTable

public class GrowOnlyGridTable
extends java.lang.Object

A two-dimensional GrowOnlyHashtable. That is, a collection of non-null objects indexed by 2 keys.


Field Summary
static java.lang.String ClassName
           
 
Constructor Summary
GrowOnlyGridTable()
           
 
Method Summary
 java.lang.Object get(java.lang.Object key1, java.lang.Object key2)
          Return the element indexed by .
 GrowOnlyGridTable getReducedTable(java.util.List skippedPrimaryKeys)
          Return a new GrowOnlyGridTable with reduced content.
 java.util.Set primaryKeySet()
          Returns the set of keys in the primary table.
 java.lang.Object put(java.lang.Object key1, java.lang.Object key2, java.lang.Object element)
          Store the specified element indexed by .
 java.util.List secondaryElementsList(java.lang.Object primaryKey)
          Returns unique objects in the gridtable as a list given a primary key.
 java.util.Set secondaryKeySet(java.lang.Object primaryKey)
          Returns the set of keys in the secondary table corresponding to the primary key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ClassName

public static final java.lang.String ClassName
Constructor Detail

GrowOnlyGridTable

public GrowOnlyGridTable()
Method Detail

put

public java.lang.Object put(java.lang.Object key1,
                            java.lang.Object key2,
                            java.lang.Object element)
Store the specified element indexed by . Returns the old value or null if there was no old value.


get

public java.lang.Object get(java.lang.Object key1,
                            java.lang.Object key2)
Return the element indexed by .


secondaryElementsList

public java.util.List secondaryElementsList(java.lang.Object primaryKey)
Returns unique objects in the gridtable as a list given a primary key. If the primaryKey is null, throws NullPointerException.


primaryKeySet

public java.util.Set primaryKeySet()
Returns the set of keys in the primary table.


secondaryKeySet

public java.util.Set secondaryKeySet(java.lang.Object primaryKey)
Returns the set of keys in the secondary table corresponding to the primary key. If the primaryKey is null, throws NullPointerException.


getReducedTable

public GrowOnlyGridTable getReducedTable(java.util.List skippedPrimaryKeys)
Return a new GrowOnlyGridTable with reduced content. The returned table will have the same content as the input table but will skip copying the keys in skippedPrimaryKeys



AribaWeb User Interface Development Framework
Copyright © 2000-2014 Ariba, Inc. All Rights Reserved.