public final class SharedTable extends Object
Table
, which is ordered according to the following rules:
EMPTY_CELL
),
and add the new value there. If there are no empty cells, then append a new
row.Modifier and Type | Field and Description |
---|---|
static Double |
EMPTY_CELL |
Modifier and Type | Method and Description |
---|---|
static void |
add(String label,
String header,
double value)
Adds new value as a
Double to the shared table |
static void |
add(String label,
String header,
Double value)
Adds new data to the shared table according to the shared table policy.
|
static void |
add(String label,
String header,
long value)
Adds new value as a
Double to the shared table. |
static Table<DefaultColumn<Double>,Double> |
getTable()
Gets a copy of the singleton
Table . |
static boolean |
hasData() |
static void |
reset()
Initializes the table into a new empty table
|
public static final Double EMPTY_CELL
public static void add(String label, String header, long value)
Double
to the shared table.label
- the row label of the new data.header
- the column heading of the new data.value
- the value of the new data.add(String, String, Double)
public static void add(String label, String header, double value)
Double
to the shared tablelabel
- the row label of the new data.header
- the column heading of the new data.value
- the value of the new data.add(String, String, Double)
public static void add(String label, String header, Double value) throws NullPointerException
label
- the row label of the new data.header
- the column heading of the new data.value
- the value of the new data.NullPointerException
- if value == nullpublic static Table<DefaultColumn<Double>,Double> getTable()
Table
.
Returns the same copy instance on every call. However, the contents of the copy table are always cleared and copied from the actual table. That is, if you've modified the copy after the previous call, those modifications are lost.
public static boolean hasData()
public static void reset()
Copyright © 2018–2022 BoneJ. All rights reserved.