Skip to content

Some useful Table methods not documented in reference #402

@jwoLondon

Description

@jwoLondon

There are some useful methods in the Table class that, looking at the source code, appear to be available, but are not mentioned in the reference pages for Table.

In particular sort() and sortReverse(), and associated with this for sorting rows by numeric value, setColumnType().

Also useful is the ability to return entire columns as arrays, which is mentioned in the reference for getStringColumn(), but not getIntColumn() or getFloatColumn().

I mention these because I have found them useful for teaching beginners who wish to manipulate tables and are not used to browsing source code or full Java API docs. I had also previously been writing my own table sorting code in Java, not realising the functionality was already there but undocumented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions