CategoryCreateList

int ro size

The number of Categories in the list


void add(Iterable<Category> list)

Adds the Categories in list to the end of the list.


Parameters:
list 


void add(Category... object)

Adds the given Categories to the end of the list.


Parameters:
object 


void add(Category object)

Adds the given Category to the end of the list.


Parameters:
object 


void addAt(int index, Iterable<Category> list)

Inserts the Categories in list into the list at index index.


Parameters:
index 
list 


void addAt(int index, Category... object)

Inserts the given Categories into the list at index index.


Parameters:
index 
object 


void addAt(int index, Category object)

Inserts the given Category into the list at index index.


Parameters:
index 
object 


List<Category> asList()

Returns a List of Categories with the same contents as this one.


boolean contains(Category object)

Returns true if object is in this list.


Parameters:
object 


SList<Category> create(Collection<Object> list)

For each element in list, creates a new Category and initializes it from that element, then adds it to this list.


Parameters:
list 


SList<Category> create(Object... content)

For each argument, creates a new Category and initializes it from that argument, then adds it to the list.


Parameters:
content 


Category create(Object content)

Creates a new Category, initializes it from content, then adds it to the list.


Parameters:
content 


SList<Category> create(int count)

Adds count new Categories to the list, and returns a sublist containing the new Categories.


Parameters:
count 


Category create()

Creates a new Category and adds it to the list.


Category create(Object categoryName, int itemCount)

Creates a category with name categoryName containing itemCount items, then adds it to the list.


Parameters:
categoryName 
itemCount 


Category create(Object categoryName, Collection<Object> items)

Creates a category with name categoryName and adds the elements in items as its children, then adds it to the list.


Parameters:
categoryName 
items 


void each(Closure block)

Executes the code in block on each Category in this list.


Parameters:
block 


SList<Category> find(String pattern)

Returns a list of Categories whose names match a regular expression.

The given pattern is matched against the full name of each list element. This means, for example, that the pattern "foo" will match an element named "foo" but not one named "foobar", while the pattern "foo.*" will match both.


Parameters:
pattern 


void forEach(Consumer<Object> action)

Performs the given action for each element of the Iterable until all elements have been processed or the action throws an exception. Unless otherwise specified by the implementing class, actions are performed in the order of iteration (if an iteration order is specified). Exceptions thrown by the action are relayed to the caller.
Implementation Requirements:

The default implementation behaves as if:


     for (T t : this)
         action.accept(t);
 
Parameters:
action - The action to be performed for each element
Throws:
NullPointerException - if the specified action is null
Since:
1.8



SList<Category> get(Collection<Object> names)

Returns a list of Categories whose names are in the given collection.


Parameters:
names 


Category get(int index)

Returns the Category at index index.


Parameters:
index 


int indexOf(Category object)

Returns the index of object in this list, or -1 if not found.


Parameters:
object 


Iterator<Category> iterator()

Returns an iterator over the Categories in this list.


Spliterator<Category> spliterator()

Creates a Spliterator over the elements described by this Iterable.
Implementation Requirements:
The default implementation creates an early-binding spliterator from the iterable's Iterator. The spliterator inherits the fail-fast properties of the iterable's iterator.
Implementation Note:
The default implementation should usually be overridden. The spliterator returned by the default implementation has poor splitting capabilities, is unsized, and does not report any spliterator characteristics. Implementing classes can nearly always provide a better implementation.
Returns:
a Spliterator over the elements described by this Iterable.
Since:
1.8