Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

…lines 1–258 unchanged (258 lines)
259 if (cal1 == null || cal2 == null) {
260 throw new IllegalArgumentException("The date must not be null");
261 }
262 return (cal1.get(Calendar.MILLISECOND) == cal2.get(Calendar.MILLISECOND) &&
263 cal1.get(Calendar.SECOND) == cal2.get(Calendar.SECOND) &&
264 cal1.get(Calendar.MINUTE) == cal2.get(Calendar.MINUTE) &&
265 cal1.get(Calendar.HOUR) == cal2.get(Calendar.HOUR) &&
266 cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR) &&
267 cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&
268 cal1.get(Calendar.ERA) == cal2.get(Calendar.ERA) &&
269 cal1.getClass() == cal2.getClass());
270 }
271
…lines 272–1872 unchanged (1601 lines)

After

…lines 1–258 unchanged (258 lines)
259 if (cal1 == null || cal2 == null) {
260 throw new IllegalArgumentException("The date must not be null");
261 }
262 return (cal1.get(Calendar.MILLISECOND) == cal2.get(Calendar.MILLISECOND) &&
263 cal1.get(Calendar.SECOND) == cal2.get(Calendar.SECOND) &&
264 cal1.get(Calendar.MINUTE) == cal2.get(Calendar.MINUTE) &&
265 cal1.get(Calendar.HOUR_OF_DAY) == cal2.get(Calendar.HOUR_OF_DAY) &&
266 cal1.get(Calendar.DAY_OF_YEAR) == cal2.get(Calendar.DAY_OF_YEAR) &&
267 cal1.get(Calendar.YEAR) == cal2.get(Calendar.YEAR) &&
268 cal1.get(Calendar.ERA) == cal2.get(Calendar.ERA) &&
269 cal1.getClass() == cal2.getClass());
270 }
271
…lines 272–1872 unchanged (1601 lines)

Before

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "lang3"
. "."
identifier "time"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "ParseException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "ParsePosition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "SimpleDateFormat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Calendar"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Date"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "NoSuchElementException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "TimeZone"
; ";"
block_comment "/**\n * <p>A suite of utilities surrounding the use of the\n *"...
class_declaration
modifiers
public "public"
class "class"
identifier "DateUtils"
class_body
{ "{"
block_comment "/**\n * The UTC time zone (often referred to as GMT).\n "...
field_declaration (+21 nodes collapsed)
block_comment "/**\n * Number of milliseconds in a standard second.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_SECOND"
= "="
decimal_integer_literal "1000"
; ";"
block_comment "/**\n * Number of milliseconds in a standard minute.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_MINUTE"
= "="
binary_expression
decimal_integer_literal "60"
* "*"
identifier "MILLIS_PER_SECOND"
; ";"
block_comment "/**\n * Number of milliseconds in a standard hour.\n *"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_HOUR"
= "="
binary_expression
decimal_integer_literal "60"
* "*"
identifier "MILLIS_PER_MINUTE"
; ";"
block_comment "/**\n * Number of milliseconds in a standard day.\n * "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_DAY"
= "="
binary_expression
decimal_integer_literal "24"
* "*"
identifier "MILLIS_PER_HOUR"
; ";"
block_comment "/**\n * This is half a month, so this represents whether "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "SEMI_MONTH"
= "="
decimal_integer_literal "1001"
; ";"
field_declaration (+104 nodes collapsed)
block_comment "/**\n * A week range, starting on Sunday.\n */"
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_SUNDAY"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * A week range, starting on Monday.\n */"
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_MONDAY"
= "="
decimal_integer_literal "2"
; ";"
block_comment "/**\n * A week range, starting on the day focused.\n *"...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_RELATIVE"
= "="
decimal_integer_literal "3"
; ";"
block_comment "/**\n * A week range, centered around the day focused.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_CENTER"
= "="
decimal_integer_literal "4"
; ";"
block_comment "/**\n * A month range, the week starting on Sunday.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_MONTH_SUNDAY"
= "="
decimal_integer_literal "5"
; ";"
block_comment "/**\n * A month range, the week starting on Monday.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_MONTH_MONDAY"
= "="
decimal_integer_literal "6"
; ";"
block_comment "/**\n * Constant marker for truncating \n * @since 3.0"...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_TRUNCATE"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/**\n * Constant marker for rounding\n * @since 3.0\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_ROUND"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * Constant marker for ceiling\n * @since 3.0\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_CEILING"
= "="
decimal_integer_literal "2"
; ";"
block_comment "/**\n * <p><code>DateUtils</code> instances should NOT be"...
constructor_declaration
modifiers
public "public"
identifier "DateUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two date objects are on the same day"...
method_declaration (+107 nodes collapsed)
block_comment "/**\n * <p>Checks if two calendar objects are on the same"...
method_declaration (+132 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two date objects represent the same "...
method_declaration (+69 nodes collapsed)
block_comment "/**\n * <p>Checks if two calendar objects represent the s"...
method_declaration (+81 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two calendar objects represent the s"...
method_declaration
modifiers
public "public"
static "static"
boolean_type "boolean"
identifier "isSameLocalTime"
formal_parameters
( "("
formal_parameter
type_identifier "Calendar"
identifier "cal1"
, ","
formal_parameter
type_identifier "Calendar"
identifier "cal2"
) ")"
block
{ "{"
if_statement (+31 nodes collapsed)
return_statement
return "return"
parenthesized_expression
( "("
binary_expression
binary_expression
binary_expression
binary_expression
binary_expression
binary_expression (+76 nodes collapsed)
&& "&&"
binary_expression
method_invocation
identifier "cal1"
. "."
identifier "get"
argument_list
( "("
field_access
identifier "Calendar"
. "."
identifier "HOUR"
) ")"
== "=="
method_invocation
identifier "cal2"
. "."
identifier "get"
argument_list
( "("
field_access
identifier "Calendar"
. "."
identifier "HOUR"
) ")"
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression
method_invocation
identifier "cal1"
. "."
identifier "getClass"
argument_list
( "("
) ")"
== "=="
method_invocation
identifier "cal2"
. "."
identifier "getClass"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+37 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+323 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of years to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of months to a date returning a new"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of weeks to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of days to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of hours to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of minutes to a date returning a ne"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of seconds to a date returning a ne"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of milliseconds to a date returning"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds to a date returning a new object.\n * The"...
method_declaration (+95 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the years field to a date returning a new ob"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the months field to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the day of month field to a date returning a"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the hours field to a date returning a new ob"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the minute field to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the seconds field to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the miliseconds field to a date returning a "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the specified field to a date returning a ne"...
method_declaration (+106 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Convert a Date into a Calendar object. \n * \n "...
method_declaration (+42 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+126 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+126 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+132 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Internal calculation method.</p>\n * \n "...
method_declaration (+1067 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+582 nodes collapsed)
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+126 nodes collapsed)
block_comment "/**\n * <p>Returns the number of milliseconds within the "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of seconds within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of minutes within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of hours within the \n *"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of days within the \n * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of milliseconds within the "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of seconds within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of minutes within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of hours within the \n *"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of days within the \n * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Date-version for fragment-calculation in any unit"...
method_declaration (+87 nodes collapsed)
block_comment "/**\n * Calendar-version for fragment-calculation in any "...
method_declaration (+369 nodes collapsed)
block_comment "/**\n * Determines if two calendars are equal up to no mo"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Determines if two dates are equal up to no more t"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Determines how two calendars compare up to no mor"...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Determines how two dates compare up to no more th"...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Returns the number of millis of a datefield, if t"...
method_declaration (+160 nodes collapsed)
block_comment "/**\n * <p>Date iterator.</p>\n */"
class_declaration (+197 nodes collapsed)
} "}"

After

program
block_comment "/*\n * Licensed to the Apache Software Foundation (ASF) under"...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "apache"
. "."
identifier "commons"
. "."
identifier "lang3"
. "."
identifier "time"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "ParseException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "ParsePosition"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "text"
. "."
identifier "SimpleDateFormat"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Calendar"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Date"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "Iterator"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "NoSuchElementException"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "TimeZone"
; ";"
block_comment "/**\n * <p>A suite of utilities surrounding the use of the\n *"...
class_declaration
modifiers
public "public"
class "class"
identifier "DateUtils"
class_body
{ "{"
block_comment "/**\n * The UTC time zone (often referred to as GMT).\n "...
field_declaration (+21 nodes collapsed)
block_comment "/**\n * Number of milliseconds in a standard second.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_SECOND"
= "="
decimal_integer_literal "1000"
; ";"
block_comment "/**\n * Number of milliseconds in a standard minute.\n "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_MINUTE"
= "="
binary_expression
decimal_integer_literal "60"
* "*"
identifier "MILLIS_PER_SECOND"
; ";"
block_comment "/**\n * Number of milliseconds in a standard hour.\n *"...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_HOUR"
= "="
binary_expression
decimal_integer_literal "60"
* "*"
identifier "MILLIS_PER_MINUTE"
; ";"
block_comment "/**\n * Number of milliseconds in a standard day.\n * "...
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "MILLIS_PER_DAY"
= "="
binary_expression
decimal_integer_literal "24"
* "*"
identifier "MILLIS_PER_HOUR"
; ";"
block_comment "/**\n * This is half a month, so this represents whether "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "SEMI_MONTH"
= "="
decimal_integer_literal "1001"
; ";"
field_declaration (+104 nodes collapsed)
block_comment "/**\n * A week range, starting on Sunday.\n */"
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_SUNDAY"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * A week range, starting on Monday.\n */"
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_MONDAY"
= "="
decimal_integer_literal "2"
; ";"
block_comment "/**\n * A week range, starting on the day focused.\n *"...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_RELATIVE"
= "="
decimal_integer_literal "3"
; ";"
block_comment "/**\n * A week range, centered around the day focused.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_WEEK_CENTER"
= "="
decimal_integer_literal "4"
; ";"
block_comment "/**\n * A month range, the week starting on Sunday.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_MONTH_SUNDAY"
= "="
decimal_integer_literal "5"
; ";"
block_comment "/**\n * A month range, the week starting on Monday.\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "RANGE_MONTH_MONDAY"
= "="
decimal_integer_literal "6"
; ";"
block_comment "/**\n * Constant marker for truncating \n * @since 3.0"...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_TRUNCATE"
= "="
decimal_integer_literal "0"
; ";"
block_comment "/**\n * Constant marker for rounding\n * @since 3.0\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_ROUND"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/**\n * Constant marker for ceiling\n * @since 3.0\n "...
field_declaration
modifiers
public "public"
final "final"
static "static"
integral_type
int "int"
variable_declarator
identifier "MODIFY_CEILING"
= "="
decimal_integer_literal "2"
; ";"
block_comment "/**\n * <p><code>DateUtils</code> instances should NOT be"...
constructor_declaration
modifiers
public "public"
identifier "DateUtils"
formal_parameters
( "("
) ")"
constructor_body
{ "{"
explicit_constructor_invocation
super "super"
argument_list
( "("
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two date objects are on the same day"...
method_declaration (+107 nodes collapsed)
block_comment "/**\n * <p>Checks if two calendar objects are on the same"...
method_declaration (+132 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two date objects represent the same "...
method_declaration (+69 nodes collapsed)
block_comment "/**\n * <p>Checks if two calendar objects represent the s"...
method_declaration (+81 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Checks if two calendar objects represent the s"...
method_declaration
modifiers
public "public"
static "static"
boolean_type "boolean"
identifier "isSameLocalTime"
formal_parameters
( "("
formal_parameter
type_identifier "Calendar"
identifier "cal1"
, ","
formal_parameter
type_identifier "Calendar"
identifier "cal2"
) ")"
block
{ "{"
if_statement (+31 nodes collapsed)
return_statement
return "return"
parenthesized_expression
( "("
binary_expression
binary_expression
binary_expression
binary_expression
binary_expression
binary_expression (+76 nodes collapsed)
&& "&&"
binary_expression
method_invocation
identifier "cal1"
. "."
identifier "get"
argument_list
( "("
field_access
identifier "Calendar"
. "."
identifier "HOUR_OF_DAY"
) ")"
== "=="
method_invocation
identifier "cal2"
. "."
identifier "get"
argument_list
( "("
field_access
identifier "Calendar"
. "."
identifier "HOUR_OF_DAY"
) ")"
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression (+24 nodes collapsed)
&& "&&"
binary_expression
method_invocation
identifier "cal1"
. "."
identifier "getClass"
argument_list
( "("
) ")"
== "=="
method_invocation
identifier "cal2"
. "."
identifier "getClass"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+37 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Parses a string representing a date by trying "...
method_declaration (+323 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of years to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of months to a date returning a new"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of weeks to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of days to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of hours to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of minutes to a date returning a ne"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of seconds to a date returning a ne"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds a number of milliseconds to a date returning"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Adds to a date returning a new object.\n * The"...
method_declaration (+95 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the years field to a date returning a new ob"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the months field to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the day of month field to a date returning a"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the hours field to a date returning a new ob"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the minute field to a date returning a new o"...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the seconds field to a date returning a new "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the miliseconds field to a date returning a "...
method_declaration (+36 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Sets the specified field to a date returning a ne"...
method_declaration (+106 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * Convert a Date into a Calendar object. \n * \n "...
method_declaration (+42 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Round this date, leaving the field specified a"...
method_declaration (+126 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Truncate this date, leaving the field specifie"...
method_declaration (+126 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+90 nodes collapsed)
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+78 nodes collapsed)
block_comment "/**\n * <p>Ceil this date, leaving the field specified as"...
method_declaration (+132 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>Internal calculation method.</p>\n * \n "...
method_declaration (+1067 nodes collapsed)
line_comment "//----------------------------------------------------------"...
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+84 nodes collapsed)
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+582 nodes collapsed)
block_comment "/**\n * <p>This constructs an <code>Iterator</code> over "...
method_declaration (+126 nodes collapsed)
block_comment "/**\n * <p>Returns the number of milliseconds within the "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of seconds within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of minutes within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of hours within the \n *"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of days within the \n * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of milliseconds within the "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of seconds within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of minutes within the \n "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of hours within the \n *"...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * <p>Returns the number of days within the \n * "...
method_declaration (+37 nodes collapsed)
block_comment "/**\n * Date-version for fragment-calculation in any unit"...
method_declaration (+87 nodes collapsed)
block_comment "/**\n * Calendar-version for fragment-calculation in any "...
method_declaration (+369 nodes collapsed)
block_comment "/**\n * Determines if two calendars are equal up to no mo"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Determines if two dates are equal up to no more t"...
method_declaration (+40 nodes collapsed)
block_comment "/**\n * Determines how two calendars compare up to no mor"...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Determines how two dates compare up to no more th"...
method_declaration (+64 nodes collapsed)
block_comment "/**\n * Returns the number of millis of a datefield, if t"...
method_declaration (+160 nodes collapsed)
block_comment "/**\n * <p>Date iterator.</p>\n */"
class_declaration (+197 nodes collapsed)
} "}"