info.aduna.gee.spectacle.gee
Class SubList

java.lang.Object
  extended by info.aduna.gee.spectacle.gee.SubList

public class SubList
extends Object

SubList is a dedicated NavigationTree utility. It will not work for non-constant lists.


Constructor Summary
SubList()
          Used by Jazzz only ....
 
Method Summary
 void add(int parentIndex)
          Note: may be used for SubList's created by create(List) only! And: can not be used after trimToSize();
static SubList create(List parentList)
          Construct a empty sublist of a list.
static SubList create(List parentList, List childList)
          Construct a sublist of a list.
static SubList create(List parentList, Set childSet)
          Construct a sublist of a list.
static SubList create(SubList parentSubList, List childList)
          Construct a sublist of a sublist.
static SubList create(SubList parentSubList, Set childSet)
          Construct a sublist of a sublist.
 boolean equals(Object other)
           
 List getList()
          Get the equivalent list.
 List getParentList()
          Get the parent list.
 int hashCode()
           
 int size()
          Get the size.
 void trimToSize()
          Obtain the most efficient memory estate.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubList

public SubList()
Used by Jazzz only .... !

Method Detail

create

public static SubList create(List parentList,
                             List childList)
Construct a sublist of a list.

Parameters:
parentList - the parent list
childList - the child list, sequence must be exactly as in parent

create

public static SubList create(SubList parentSubList,
                             List childList)
Construct a sublist of a sublist.

Parameters:
parentSubList - the parent sublist
childList - the child list, sequence must be exactly as in parent

create

public static SubList create(List parentList,
                             Set childSet)
Construct a sublist of a list.

Parameters:
parentList - the parent list
childSet - the child set

create

public static SubList create(SubList parentSubList,
                             Set childSet)
Construct a sublist of a sublist.

Parameters:
parentSubList - the parent sublist
childSet - the child set

create

public static SubList create(List parentList)
Construct a empty sublist of a list. Note: to create a total sublist of a list use create(theList, theList).


getList

public List getList()
Get the equivalent list.


getParentList

public List getParentList()
Get the parent list.


size

public int size()
Get the size.


add

public void add(int parentIndex)
Note: may be used for SubList's created by create(List) only! And: can not be used after trimToSize();


trimToSize

public void trimToSize()
Obtain the most efficient memory estate.


hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 1997-2008 Aduna. All Rights Reserved.