Class DefaultTreeTable

java.lang.Object
org.apache.sis.util.collection.DefaultTreeTable
All Implemented Interfaces:
Serializable, Cloneable, TreeTable

public class DefaultTreeTable extends Object implements TreeTable, Cloneable, Serializable
A TreeTable implementation with a list of columns given at construction time. The list of columns is unmodifiable, but the root node can be modified. Example: The setRoot(…) method accepts arbitrary TreeTable.Node implementations. However, it is likely to be safer and more memory efficient when used together with the implementation provided in the DefaultTreeTable.Node inner class.
Since:
0.3
Version:
1.2
Author:
Martin Desruisseaux (Geomatys)
See Also:
  • Constructor Details

    • DefaultTreeTable

      public DefaultTreeTable(TableColumn<?>... columns)
      Creates a new tree table with the given columns. The given array shall not be null or empty, and shall not contain null or duplicated elements.
      Parameters:
      columns - the list of table columns.
    • DefaultTreeTable

      public DefaultTreeTable(DefaultTreeTable.Node root)
      Creates a new tree table initialized to the given root. The list of columns is inferred from the given node.
      Parameters:
      root - the tree table root (cannot be null).
  • Method Details