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 "5032960206869675528L"
; ";"
block_comment "/** Default value for the domain description. */"
field_declaration
modifiers
protected "protected"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_DOMAIN_DESCRIPTION"
= "="
string_literal
" "\""
string_fragment "Time"
" "\""
; ";"
block_comment "/** Default value for the range description. */"
field_declaration
modifiers
protected "protected"
static "static"
final "final"
type_identifier "String"
variable_declarator
identifier "DEFAULT_RANGE_DESCRIPTION"
= "="
string_literal
" "\""
string_fragment "Value"
" "\""
; ";"
block_comment "/** A description of the domain. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "domain"
; ";"
block_comment "/** A description of the range. */"
field_declaration
modifiers
private "private"
type_identifier "String"
variable_declarator
identifier "range"
; ";"
block_comment "/** The type of period for the data. */"
field_declaration
modifiers
protected "protected"
type_identifier "Class"
variable_declarator
identifier "timePeriodClass"
; ";"
block_comment "/** The list of data items in the series. */"
field_declaration
modifiers
protected "protected"
type_identifier "List"
variable_declarator
identifier "data"
; ";"
block_comment "/** The maximum number of items for the series. */"
field_declaration
modifiers
private "private"
integral_type
int "int"
variable_declarator
identifier "maximumItemCount"
; ";"
block_comment "/**\r\n * The maximum age of items for the series, specifi"...
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "maximumItemAge"
; ";"
block_comment "/**\r\n * Creates a new (empty) time series. By default, "...
constructor_declaration (+29 nodes collapsed)
block_comment "/**\r\n * Creates a new (empty) time series with the speci"...
constructor_declaration (+30 nodes collapsed)
block_comment "/**\r\n * Creates a new time series that contains no data."...
constructor_declaration (+103 nodes collapsed)
block_comment "/**\r\n * Returns the domain description.\r\n *\r\n * "...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getDomainDescription"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "domain"
; ";"
} "}"
block_comment "/**\r\n * Sets the domain description and sends a <code>Pr"...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Returns the range description.\r\n *\r\n * @"...
method_declaration
modifiers
public "public"
type_identifier "String"
identifier "getRangeDescription"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "range"
; ";"
} "}"
block_comment "/**\r\n * Sets the range description and sends a <code>Pro"...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Returns the number of items in the series.\r\n "...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the list of data items for the series (t"...
method_declaration (+25 nodes collapsed)
block_comment "/**\r\n * Returns the maximum number of items that will be"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getMaximumItemCount"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "maximumItemCount"
; ";"
} "}"
block_comment "/**\r\n * Sets the maximum number of items that will be re"...
method_declaration (+94 nodes collapsed)
block_comment "/**\r\n * Returns the maximum item age (in time periods) f"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getMaximumItemAge"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "maximumItemAge"
; ";"
} "}"
block_comment "/**\r\n * Sets the number of time units in the 'history' f"...
method_declaration (+58 nodes collapsed)
block_comment "/**\r\n * Returns the time period class for this series.\r\n"...
method_declaration
modifiers
public "public"
type_identifier "Class"
identifier "getTimePeriodClass"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "timePeriodClass"
; ";"
} "}"
block_comment "/**\r\n * Returns a data item for the series.\r\n *\r\n "...
method_declaration (+33 nodes collapsed)
block_comment "/**\r\n * Returns the data item for a specific period.\r\n "...
method_declaration (+65 nodes collapsed)
block_comment "/**\r\n * Returns the time period at the specified index.\r"...
method_declaration (+30 nodes collapsed)
block_comment "/**\r\n * Returns a time period that would be the next in "...
method_declaration (+40 nodes collapsed)
block_comment "/**\r\n * Returns a collection of all the time periods in "...
method_declaration (+75 nodes collapsed)
block_comment "/**\r\n * Returns a collection of time periods in the spec"...
method_declaration (+114 nodes collapsed)
block_comment "/**\r\n * Returns the index for the item (if any) that cor"...
method_declaration (+74 nodes collapsed)
block_comment "/**\r\n * Returns the value at the specified index.\r\n "...
method_declaration (+30 nodes collapsed)
block_comment "/**\r\n * Returns the value for a time period. If there i"...
method_declaration (+56 nodes collapsed)
block_comment "/**\r\n * Adds a data item to the series and sends a\r\n "...
method_declaration (+24 nodes collapsed)
block_comment "/**\r\n * Adds a data item to the series and sends a\r\n "...
method_declaration (+571 nodes collapsed)
block_comment "/**\r\n * Adds a new data item to the series and sends a {"...
method_declaration (+32 nodes collapsed)
block_comment "/**\r\n * Adds a new data item to the series and sends a {"...
method_declaration (+49 nodes collapsed)
block_comment "/**\r\n * Adds a new data item to the series and sends\r\n "...
method_declaration (+31 nodes collapsed)
block_comment "/**\r\n * Adds a new data item to the series and sends\r\n "...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Updates (changes) the value for a time period. "...
method_declaration (+120 nodes collapsed)
block_comment "/**\r\n * Updates (changes) the value of a data item.\r\n "...
method_declaration (+48 nodes collapsed)
block_comment "/**\r\n * Adds or updates data from one series to another."...
method_declaration (+140 nodes collapsed)
block_comment "/**\r\n * Adds or updates an item in the times series and "...
method_declaration (+36 nodes collapsed)
block_comment "/**\r\n * Adds or updates an item in the times series and "...
method_declaration (+249 nodes collapsed)
block_comment "/**\r\n * Age items in the series. Ensure that the timesp"...
method_declaration (+135 nodes collapsed)
block_comment "/**\r\n * Age items in the series. Ensure that the timesp"...
method_declaration (+292 nodes collapsed)
block_comment "/**\r\n * Removes all data items from the series and sends"...
method_declaration (+51 nodes collapsed)
block_comment "/**\r\n * Deletes the data item for the given time period "...
method_declaration (+59 nodes collapsed)
block_comment "/**\r\n * Deletes data from start until end index (end inc"...
method_declaration (+94 nodes collapsed)
block_comment "/**\r\n * Returns a clone of the time series.\r\n * <P>\r"...
method_declaration (+58 nodes collapsed)
block_comment "/**\r\n * Creates a new timeseries by copying a subset of "...
method_declaration (+231 nodes collapsed)
block_comment "/**\r\n * Creates a new timeseries by copying a subset of "...
method_declaration
modifiers
public "public"
type_identifier "TimeSeries"
identifier "createCopy"
formal_parameters
( "("
formal_parameter
type_identifier "RegularTimePeriod"
identifier "start"
, ","
formal_parameter
type_identifier "RegularTimePeriod"
identifier "end"
) ")"
throws
throws "throws"
type_identifier "CloneNotSupportedException"
block
{ "{"
if_statement (+25 nodes collapsed)
if_statement (+25 nodes collapsed)
if_statement (+32 nodes collapsed)
local_variable_declaration
boolean_type "boolean"
variable_declarator
identifier "emptyRange"
= "="
false "false"
; ";"
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "startIndex"
= "="
method_invocation
identifier "getIndex"
argument_list
( "("
identifier "start"
) ")"
; ";"
if_statement (+54 nodes collapsed)
local_variable_declaration
integral_type
int "int"
variable_declarator
identifier "endIndex"
= "="
method_invocation
identifier "getIndex"
argument_list
( "("
identifier "end"
) ")"
; ";"
if_statement (+38 nodes collapsed)
if_statement
if "if"
parenthesized_expression any 1:2
( "(" any 1:2
binary_expression
identifier "endIndex"
< "<"
decimal_integer_literal "0"
) ")" any 1:2
block
{ "{"
expression_statement
assignment_expression
identifier "emptyRange"
= "="
true "true"
; ";"
} "}"
if_statement (+65 nodes collapsed)
} "}"
block_comment "/**\r\n * Tests the series for equality with an arbitrary "...
method_declaration (+321 nodes collapsed)
block_comment "/**\r\n * Returns a hash code value for the object.\r\n "...
method_declaration (+316 nodes collapsed)
} "}"