public final class

BoardCategory

extends Object
implements Iterable<Board>
java.lang.Object
   ↳ chan.content.model.BoardCategory

Class Overview

Model containing board category data: category title and array of Board.

Summary

Public Constructors
BoardCategory(String title, Board[] boards)

Constructor for BoardCategory.

BoardCategory(String title, Collection<Board> boards)

Constructor for BoardCategory.

Public Methods
Board[] getBoards()

Return array of Board under this category.

String getTitle()

Returns board category title.

Iterator<Board> iterator()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public BoardCategory (String title, Board[] boards)

Constructor for BoardCategory.

Parameters
title String: Board category title.
boards Board: Array of Board.

public BoardCategory (String title, Collection<Board> boards)

Constructor for BoardCategory. Collection will be transformed to array.

Parameters
title String: Board category title.
boards Collection: Collection of Board.

Public Methods

public Board[] getBoards ()

Return array of Board under this category.

Returns
Board[] Array of Board.

public String getTitle ()

Returns board category title.

Returns
String Title string.

public Iterator<Board> iterator ()

Returns
Iterator<Board>