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–168 unchanged (168 lines)
169 * @param zone the time zone (<code>null</code> not permitted).
170 *
171 * @deprecated As of 1.0.7, use {@link #Week(Date, TimeZone, Locale)}.
172 */
173 public Week(Date time, TimeZone zone) {
174 // defer argument checking...
175 this(time, RegularTimePeriod.DEFAULT_TIME_ZONE, Locale.getDefault());
176 }
177
178 /**
179 * Creates a time period for the week in which the specified date/time
180 * falls, calculated relative to the specified time zone.
181 *
…lines 182–648 unchanged (467 lines)

After

…lines 1–168 unchanged (168 lines)
169 * @param zone the time zone (<code>null</code> not permitted).
170 *
171 * @deprecated As of 1.0.7, use {@link #Week(Date, TimeZone, Locale)}.
172 */
173 public Week(Date time, TimeZone zone) {
174 // defer argument checking...
175 this(time, zone, Locale.getDefault());
176 }
177
178 /**
179 * Creates a time period for the week in which the specified date/time
180 * falls, calculated relative to the specified time zone.
181 *
…lines 182–648 unchanged (467 lines)

Before

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "time"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "Serializable"
; ";"
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 "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "TimeZone"
; ";"
block_comment "/**\r\n * A calendar week. All years are considered to have 5"...
class_declaration
modifiers
public "public"
class "class"
identifier "Week"
superclass
extends "extends"
type_identifier "RegularTimePeriod"
super_interfaces
implements "implements"
type_list
type_identifier "Serializable"
class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1856387786939865061L"
; ";"
block_comment "/** Constant for the first week in the year. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "FIRST_WEEK_IN_YEAR"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/** Constant for the last week in the year. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LAST_WEEK_IN_YEAR"
= "="
decimal_integer_literal "53"
; ";"
block_comment "/** The year in which the week falls. */"
field_declaration
modifiers
private "private"
integral_type
short "short"
variable_declarator
identifier "year"
; ";"
block_comment "/** The week (1-53). */"
field_declaration
modifiers
private "private"
integral_type
byte "byte"
variable_declarator
identifier "week"
; ";"
block_comment "/** The first millisecond. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "firstMillisecond"
; ";"
block_comment "/** The last millisecond. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "lastMillisecond"
; ";"
block_comment "/**\r\n * Creates a new time period for the week in which "...
constructor_declaration (+22 nodes collapsed)
block_comment "/**\r\n * Creates a time period representing the week in t"...
constructor_declaration (+98 nodes collapsed)
block_comment "/**\r\n * Creates a time period representing the week in t"...
constructor_declaration (+103 nodes collapsed)
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration
modifiers
public "public"
identifier "Week"
formal_parameters
( "("
formal_parameter
type_identifier "Date"
identifier "time"
, ","
formal_parameter
type_identifier "TimeZone"
identifier "zone"
) ")"
constructor_body
{ "{"
line_comment "// defer argument checking...\r"
explicit_constructor_invocation
this "this"
argument_list
( "("
identifier "time"
, ","
field_access
identifier "RegularTimePeriod"
. "."
identifier "DEFAULT_TIME_ZONE"
, ","
method_invocation
identifier "Locale"
. "."
identifier "getDefault"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration (+321 nodes collapsed)
block_comment "/**\r\n * Returns the year in which the week falls.\r\n "...
method_declaration (+24 nodes collapsed)
block_comment "/**\r\n * Returns the year in which the week falls, as an "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getYearValue"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "year"
; ";"
} "}"
block_comment "/**\r\n * Returns the week.\r\n *\r\n * @return The we"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getWeek"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "week"
; ";"
} "}"
block_comment "/**\r\n * Returns the first millisecond of the week. This"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getFirstMillisecond"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "firstMillisecond"
; ";"
} "}"
block_comment "/**\r\n * Returns the last millisecond of the week. This "...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLastMillisecond"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "lastMillisecond"
; ";"
} "}"
block_comment "/**\r\n * Recalculates the start date/time and end date/ti"...
method_declaration (+42 nodes collapsed)
block_comment "/**\r\n * Returns the week preceding this one. This metho"...
method_declaration (+156 nodes collapsed)
block_comment "/**\r\n * Returns the week following this one. This metho"...
method_declaration (+200 nodes collapsed)
block_comment "/**\r\n * Returns a serial index number for the week.\r\n "...
method_declaration (+28 nodes collapsed)
block_comment "/**\r\n * Returns the first millisecond of the week, evalu"...
method_declaration (+175 nodes collapsed)
block_comment "/**\r\n * Returns the last millisecond of the week, evalua"...
method_declaration (+181 nodes collapsed)
block_comment "/**\r\n * Returns a string representing the week (e.g. \"We"...
method_declaration (+36 nodes collapsed)
block_comment "/**\r\n * Tests the equality of this Week object to an arb"...
method_declaration (+110 nodes collapsed)
block_comment "/**\r\n * Returns a hash code for this object instance. T"...
method_declaration (+54 nodes collapsed)
block_comment "/**\r\n * Returns an integer indicating the order of this "...
method_declaration (+139 nodes collapsed)
block_comment "/**\r\n * Parses the string argument as a week.\r\n * <P"...
method_declaration (+336 nodes collapsed)
block_comment "/**\r\n * Finds the first occurrence of ' ', '-', ',' or '"...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Creates a year from a string, or returns null (f"...
method_declaration (+56 nodes collapsed)
block_comment "/**\r\n * Converts a string to a week.\r\n *\r\n * @pa"...
method_declaration (+119 nodes collapsed)
} "}"

After

program
block_comment "/* ========================================================="...
package_declaration
package "package"
scoped_identifier
scoped_identifier
scoped_identifier
identifier "org"
. "."
identifier "jfree"
. "."
identifier "data"
. "."
identifier "time"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "io"
. "."
identifier "Serializable"
; ";"
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 "Locale"
; ";"
import_declaration
import "import"
scoped_identifier
scoped_identifier
identifier "java"
. "."
identifier "util"
. "."
identifier "TimeZone"
; ";"
block_comment "/**\r\n * A calendar week. All years are considered to have 5"...
class_declaration
modifiers
public "public"
class "class"
identifier "Week"
superclass
extends "extends"
type_identifier "RegularTimePeriod"
super_interfaces
implements "implements"
type_list
type_identifier "Serializable"
class_body
{ "{"
block_comment "/** For serialization. */"
field_declaration
modifiers
private "private"
static "static"
final "final"
integral_type
long "long"
variable_declarator
identifier "serialVersionUID"
= "="
decimal_integer_literal "1856387786939865061L"
; ";"
block_comment "/** Constant for the first week in the year. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "FIRST_WEEK_IN_YEAR"
= "="
decimal_integer_literal "1"
; ";"
block_comment "/** Constant for the last week in the year. */"
field_declaration
modifiers
public "public"
static "static"
final "final"
integral_type
int "int"
variable_declarator
identifier "LAST_WEEK_IN_YEAR"
= "="
decimal_integer_literal "53"
; ";"
block_comment "/** The year in which the week falls. */"
field_declaration
modifiers
private "private"
integral_type
short "short"
variable_declarator
identifier "year"
; ";"
block_comment "/** The week (1-53). */"
field_declaration
modifiers
private "private"
integral_type
byte "byte"
variable_declarator
identifier "week"
; ";"
block_comment "/** The first millisecond. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "firstMillisecond"
; ";"
block_comment "/** The last millisecond. */"
field_declaration
modifiers
private "private"
integral_type
long "long"
variable_declarator
identifier "lastMillisecond"
; ";"
block_comment "/**\r\n * Creates a new time period for the week in which "...
constructor_declaration (+22 nodes collapsed)
block_comment "/**\r\n * Creates a time period representing the week in t"...
constructor_declaration (+98 nodes collapsed)
block_comment "/**\r\n * Creates a time period representing the week in t"...
constructor_declaration (+103 nodes collapsed)
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration (+34 nodes collapsed)
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration
modifiers
public "public"
identifier "Week"
formal_parameters
( "("
formal_parameter
type_identifier "Date"
identifier "time"
, ","
formal_parameter
type_identifier "TimeZone"
identifier "zone"
) ")"
constructor_body
{ "{"
line_comment "// defer argument checking...\r"
explicit_constructor_invocation
this "this"
argument_list
( "("
identifier "time"
, ","
identifier "zone"
, ","
method_invocation
identifier "Locale"
. "."
identifier "getDefault"
argument_list
( "("
) ")"
) ")"
; ";"
} "}"
block_comment "/**\r\n * Creates a time period for the week in which the "...
constructor_declaration (+321 nodes collapsed)
block_comment "/**\r\n * Returns the year in which the week falls.\r\n "...
method_declaration (+24 nodes collapsed)
block_comment "/**\r\n * Returns the year in which the week falls, as an "...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getYearValue"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "year"
; ";"
} "}"
block_comment "/**\r\n * Returns the week.\r\n *\r\n * @return The we"...
method_declaration
modifiers
public "public"
integral_type
int "int"
identifier "getWeek"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "week"
; ";"
} "}"
block_comment "/**\r\n * Returns the first millisecond of the week. This"...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getFirstMillisecond"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "firstMillisecond"
; ";"
} "}"
block_comment "/**\r\n * Returns the last millisecond of the week. This "...
method_declaration
modifiers
public "public"
integral_type
long "long"
identifier "getLastMillisecond"
formal_parameters
( "("
) ")"
block
{ "{"
return_statement
return "return"
field_access
this "this"
. "."
identifier "lastMillisecond"
; ";"
} "}"
block_comment "/**\r\n * Recalculates the start date/time and end date/ti"...
method_declaration (+42 nodes collapsed)
block_comment "/**\r\n * Returns the week preceding this one. This metho"...
method_declaration (+156 nodes collapsed)
block_comment "/**\r\n * Returns the week following this one. This metho"...
method_declaration (+200 nodes collapsed)
block_comment "/**\r\n * Returns a serial index number for the week.\r\n "...
method_declaration (+28 nodes collapsed)
block_comment "/**\r\n * Returns the first millisecond of the week, evalu"...
method_declaration (+175 nodes collapsed)
block_comment "/**\r\n * Returns the last millisecond of the week, evalua"...
method_declaration (+181 nodes collapsed)
block_comment "/**\r\n * Returns a string representing the week (e.g. \"We"...
method_declaration (+36 nodes collapsed)
block_comment "/**\r\n * Tests the equality of this Week object to an arb"...
method_declaration (+110 nodes collapsed)
block_comment "/**\r\n * Returns a hash code for this object instance. T"...
method_declaration (+54 nodes collapsed)
block_comment "/**\r\n * Returns an integer indicating the order of this "...
method_declaration (+139 nodes collapsed)
block_comment "/**\r\n * Parses the string argument as a week.\r\n * <P"...
method_declaration (+336 nodes collapsed)
block_comment "/**\r\n * Finds the first occurrence of ' ', '-', ',' or '"...
method_declaration (+116 nodes collapsed)
block_comment "/**\r\n * Creates a year from a string, or returns null (f"...
method_declaration (+56 nodes collapsed)
block_comment "/**\r\n * Converts a string to a week.\r\n *\r\n * @pa"...
method_declaration (+119 nodes collapsed)
} "}"