Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 2 | 1 | 0.958 | class_body_declarations[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 231 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/RegularTimePeriod.java |
2 | 16 | 277 | E:/TSE/Projects-CloneDR/jfreechart-1.0.10/src/org/jfree/data/time/RegularTimePeriod.java |
| |||||
/** * Returns the first millisecond of the time period, evaluated within a * specific time zone. * * @param zone the time zone (<code>null</code> not permitted). * * @return The first millisecond of the time period. * * @deprecated As of 1.0.3, you should avoid using this method (it creates * a new Calendar instance every time it is called). You are advised * to call {@link #getFirstMillisecond(Calendar)} instead. * * @see #getLastMillisecond(TimeZone) */ public long getFirstMillisecond(TimeZone zone) { Calendar calendar = Calendar.getInstance(zone); return getFirstMillisecond(calendar); } /** * Returns the first millisecond of the time period, evaluated using the * supplied calendar (which incorporates a timezone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The first millisecond of the time period. * * @throws NullPointerException if <code>calendar,/code> is * </code>null</code>. * * @see #getLastMillisecond(Calendar) */ public abstract long getFirstMillisecond(Calendar calendar); |
| |||||
/** * Returns the last millisecond of the time period, evaluated within a * specific time zone. * * @param zone the time zone (<code>null</code> not permitted). * * @return The last millisecond of the time period. * * @deprecated As of 1.0.3, you should avoid using this method (it creates * a new Calendar instance every time it is called). You are advised * to call {@link #getLastMillisecond(Calendar)} instead. * * @see #getFirstMillisecond(TimeZone) */ public long getLastMillisecond(TimeZone zone) { Calendar calendar = Calendar.getInstance(zone); return getLastMillisecond(calendar); } /** * Returns the last millisecond of the time period, evaluated using the * supplied calendar (which incorporates a timezone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The last millisecond of the time period. * * @see #getFirstMillisecond(Calendar) */ public abstract long getLastMillisecond(Calendar calendar); |
| |||
/** * Returns the first millisecond of the time period, evaluated within a * specific time zone. * * @param zone the time zone (<code>null</code> not permitted). * * @return The first millisecond of the time period. * * @deprecated As of 1.0.3, you should avoid using this method (it creates * a new Calendar instance every time it is called). You are advised * to call {@link #getFirstMillisecond(Calendar)} instead. * * @see #getLastMillisecond(TimeZone) */ /** * Returns the last millisecond of the time period, evaluated within a * specific time zone. * * @param zone the time zone (<code>null</code> not permitted). * * @return The last millisecond of the time period. * * @deprecated As of 1.0.3, you should avoid using this method (it creates * a new Calendar instance every time it is called). You are advised * to call {@link #getLastMillisecond(Calendar)} instead. * * @see #getFirstMillisecond(TimeZone) */ public long [[#variable18ed1c80]](TimeZone zone) { Calendar calendar = Calendar.getInstance(zone); return [[#variable18ed1c80]](calendar); } /** * Returns the first millisecond of the time period, evaluated using the * supplied calendar (which incorporates a timezone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The first millisecond of the time period. * * @throws NullPointerException if <code>calendar,/code> is * </code>null</code>. * * @see #getLastMillisecond(Calendar) */ /** * Returns the last millisecond of the time period, evaluated using the * supplied calendar (which incorporates a timezone). * * @param calendar the calendar (<code>null</code> not permitted). * * @return The last millisecond of the time period. * * @see #getFirstMillisecond(Calendar) */ public abstract long [[#variable18ed1c80]](Calendar calendar); |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#18ed1c80]] | getFirstMillisecond |
1 | 2 | [[#18ed1c80]] | getLastMillisecond |