|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mat.query.Column
public final class Column
Describes a column of a IStructuredResult
.
Nested Class Summary | |
---|---|
static class |
Column.Alignment
Alignment of the column, i.e. |
static class |
Column.SortDirection
Sort direction of the column. |
Constructor Summary | |
---|---|
Column(String label)
Build a column with the given label. |
|
Column(String label,
Class<?> type)
Build a column with the given label. |
|
Column(String label,
Class<?> type,
Column.Alignment align,
Column.SortDirection direction,
Format formatter,
Comparator<?> comparator)
|
Method Summary | |
---|---|
Column |
aligning(Column.Alignment align)
Alignment of the column. |
Column |
comparing(Comparator<?> comparator)
Comparator to sort the column. |
Column |
decorator(IDecorator decorator)
|
boolean |
equals(Object obj)
|
Column |
formatting(Format formatter)
Formatter to format the column values. |
Column.Alignment |
getAlign()
|
boolean |
getCalculateTotals()
|
Comparator<?> |
getComparator()
|
Object |
getData(Object key)
|
IDecorator |
getDecorator()
|
Format |
getFormatter()
|
String |
getLabel()
|
Column.SortDirection |
getSortDirection()
|
Class<?> |
getType()
|
int |
hashCode()
|
boolean |
isNumeric()
Returns true if the columns represents a numeric type, i.e. |
Column |
noTotals()
Indicates that no totals are to be calculated for the column even if the column contains numbers. |
Object |
setData(Object key,
Object value)
|
Column |
sorting(Column.SortDirection direction)
Initial sort direction of the column. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Column(String label)
label
- the top of the columnpublic Column(String label, Class<?> type)
label
- the top of the columntype
- a type of the column, such as float, int, Doublepublic Column(String label, Class<?> type, Column.Alignment align, Column.SortDirection direction, Format formatter, Comparator<?> comparator)
Method Detail |
---|
public Column formatting(Format formatter)
public Column aligning(Column.Alignment align)
public Column comparing(Comparator<?> comparator)
public Column sorting(Column.SortDirection direction)
public Column noTotals()
public Column decorator(IDecorator decorator)
public Class<?> getType()
public Column.Alignment getAlign()
public Column.SortDirection getSortDirection()
public String getLabel()
public Comparator<?> getComparator()
public Format getFormatter()
public boolean getCalculateTotals()
public IDecorator getDecorator()
public boolean isNumeric()
public Object setData(Object key, Object value)
public Object getData(Object key)
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |