class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
unary_expression
- "-"
decimal_integer_literal "5514169970951994748L"
; ";"
block_comment "/** The row keys. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "rowKeys"
; ";"
block_comment "/** The column keys. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "columnKeys"
; ";"
block_comment "/** The row data. */"
field_declaration
modifiers
private "private"
type_identifier "List"
variable_declarator
identifier "rows"
; ";"
block_comment "/** If the row keys should be sorted by their comparable ord"...
field_declaration
modifiers
private "private"
boolean_type "boolean"
variable_declarator
identifier "sortRowKeys"
; ";"
block_comment "/**\r\n * Creates a new instance (initially empty).\r\n "...
constructor_declaration
modifiers
public "public"
identifier "DefaultKeyedValues2D"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
this "this"
argument_list
( "("
false "false"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Creates a new instance (initially empty).\r\n "...
constructor_declaration (+82 nodes collapsed)
block_comment "/**\r\n * Returns the row count.\r\n *\r\n * @return T"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the column count.\r\n *\r\n * @retur"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the value for a given row and column.\r\n "...
method_declaration (+127 nodes collapsed)
block_comment "/**\r\n * Returns the key for a given row.\r\n *\r\n *"...
method_declaration (+33 nodes collapsed)
block_comment "/**\r\n * Returns the row index for a given key.\r\n *\r\n"...
method_declaration (+86 nodes collapsed)
block_comment "/**\r\n * Returns the row keys in an unmodifiable list.\r\n "...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the key for a given column.\r\n *\r\n "...
method_declaration (+33 nodes collapsed)
block_comment "/**\r\n * Returns the column index for a given key.\r\n "...
method_declaration (+54 nodes collapsed)
block_comment "/**\r\n * Returns the column keys in an unmodifiable list."...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the value for the given row and column k"...
method_declaration (+215 nodes collapsed)
block_comment "/**\r\n * Adds a value to the table. Performs the same fu"...
method_declaration (+35 nodes collapsed)
block_comment "/**\r\n * Adds or updates a value.\r\n *\r\n * @param "...
method_declaration (+225 nodes collapsed)
block_comment "/**\r\n * Removes a value from the table by setting it to "...
method_declaration (+399 nodes collapsed)
block_comment "/**\r\n * Removes a row.\r\n *\r\n * @param rowIndex "...
method_declaration (+41 nodes collapsed)
block_comment "/**\r\n * Removes a row.\r\n *\r\n * @param rowKey th"...
method_declaration (+27 nodes collapsed)
block_comment "/**\r\n * Removes a column.\r\n *\r\n * @param columnI"...
method_declaration (+35 nodes collapsed)
block_comment "/**\r\n * Removes a column from the table.\r\n *\r\n *"...
method_declaration
modifiers
public "public"
void_type "void"
identifier "removeColumn"
formal_parameters
( "("
formal_parameter
type_identifier "Comparable"
identifier "columnKey"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "Iterator"
variable_declarator
identifier "iterator"
= "="
method_invocation
field_access
this "this"
. "."
identifier "rows"
. "."
identifier "iterator"
argument_list
( "("
) ")"
; ";"
while_statement
while "while"
parenthesized_expression
( "("
method_invocation
identifier "iterator"
. "."
identifier "hasNext"
argument_list
( "("
) ")"
) ")"
block
{ "{"
local_variable_declaration
type_identifier "DefaultKeyedValues"
variable_declarator
identifier "rowData"
= "="
cast_expression
( "("
type_identifier "DefaultKeyedValues"
) ")"
method_invocation
identifier "iterator"
. "."
identifier "next"
argument_list
( "("
) ")"
; ";"
expression_statement
method_invocation
identifier "rowData"
. "."
identifier "removeValue"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
} "}"
expression_statement
method_invocation
field_access
this "this"
. "."
identifier "columnKeys"
. "."
identifier "remove"
argument_list
( "("
identifier "columnKey"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Clears all the data and associated keys.\r\n *"...
method_declaration (+47 nodes collapsed)
block_comment "/**\r\n * Tests if this object is equal to another.\r\n "...
method_declaration (+344 nodes collapsed)
block_comment "/**\r\n * Returns a hash code.\r\n * \r\n * @return A "...
method_declaration (+79 nodes collapsed)
block_comment "/**\r\n * Returns a clone.\r\n * \r\n * @return A clon"...
method_declaration (+109 nodes collapsed)
} "}"