CloneSet106


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47210.988class_body_declarations[5]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
147126
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/filters/HeadFilter.java
247132
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/filters/TailFilter.java
Next
Last
Clone Instance
1
Line Count
47
Source Line
126
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/filters/HeadFilter.java

/**
 * Sets the number of lines to be returned in the filtered stream.
 *
 * @param lines the number of lines to be returned in the filtered stream
 */
public void setLines( final long lines) {
  this.lines = lines;
}

/**
 * Returns the number of lines to be returned in the filtered stream.
 *
 * @return the number of lines to be returned in the filtered stream
 */
private long getLines() {
  return lines;
}

/**
 * Sets the number of lines to be skipped in the filtered stream.
 *
 * @param skip the number of lines to be skipped in the filtered stream
 */
public void setSkip( final long skip) {
  this.skip = skip;
}

/**
 * Returns the number of lines to be skipped in the filtered stream.
 *
 * @return the number of lines to be skipped in the filtered stream
 */
private long getSkip() {
  return skip;
}

/**
 * Creates a new HeadFilter using the passed in
 * Reader for instantiation.
 *
 * @param rdr A Reader object providing the underlying stream.
 *            Must not be <code>null</code>.
 *
 * @return a new filter based on this configuration, but filtering
 *         the specified reader
 */
public Reader chain( final Reader rdr) {
  HeadFilter newFilter = new HeadFilter(rdr);
  newFilter.setLines(getLines());
  newFilter.setSkip(getSkip());
  newFilter.setInitialized(true);
  return newFilter;
}


First
Previous
Clone Instance
2
Line Count
47
Source Line
132
Source File
E:/TSE/Projects-CloneDR/apache-ant-1.7.0/src/org/apache/tools/ant/filters/TailFilter.java

/**
 * Sets the number of lines to be returned in the filtered stream.
 *
 * @param lines the number of lines to be returned in the filtered stream
 */
public void setLines( final long lines) {
  this.lines = lines;
}

/**
 * Returns the number of lines to be returned in the filtered stream.
 *
 * @return the number of lines to be returned in the filtered stream
 */
private long getLines() {
  return lines;
}

/**
 * Sets the number of lines to be skipped in the filtered stream.
 *
 * @param skip the number of lines to be skipped in the filtered stream
 */
public void setSkip( final long skip) {
  this.skip = skip;
}

/**
 * Returns the number of lines to be skipped in the filtered stream.
 *
 * @return the number of lines to be skipped in the filtered stream
 */
private long getSkip() {
  return skip;
}

/**
 * Creates a new TailFilter using the passed in
 * Reader for instantiation.
 *
 * @param rdr A Reader object providing the underlying stream.
 *            Must not be <code>null</code>.
 *
 * @return a new filter based on this configuration, but filtering
 *         the specified reader
 */
public Reader chain( final Reader rdr) {
  TailFilter newFilter = new TailFilter(rdr);
  newFilter.setLines(getLines());
  newFilter.setSkip(getSkip());
  newFilter.setInitialized(true);
  return newFilter;
}


Clone AbstractionParameter Count: 1Parameter Bindings

/**
     * Sets the number of lines to be returned in the filtered stream.
     *
     * @param lines the number of lines to be returned in the filtered stream
     */
public void setLines( final long lines) {
  this.lines = lines;
}

/**
     * Returns the number of lines to be returned in the filtered stream.
     *
     * @return the number of lines to be returned in the filtered stream
     */
private long getLines() {
  return lines;
}

/**
     * Sets the number of lines to be skipped in the filtered stream.
     *
     * @param skip the number of lines to be skipped in the filtered stream
     */
public void setSkip( final long skip) {
  this.skip = skip;
}

/**
     * Returns the number of lines to be skipped in the filtered stream.
     *
     * @return the number of lines to be skipped in the filtered stream
     */
private long getSkip() {
  return skip;
}

/**
     * Creates a new TailFilter using the passed in
     * Reader for instantiation.
     *
     * @param rdr A Reader object providing the underlying stream.
     *            Must not be <code>null</code>.
     *
     * @return a new filter based on this configuration, but filtering
     *         the specified reader
     */
/**
     * Creates a new HeadFilter using the passed in
     * Reader for instantiation.
     *
     * @param rdr A Reader object providing the underlying stream.
     *            Must not be <code>null</code>.
     *
     * @return a new filter based on this configuration, but filtering
     *         the specified reader
     */
public Reader chain( final Reader rdr) {
   [[#variablefdaab00]] newFilter = new [[#variablefdaab00]](rdr);
  newFilter.setLines(getLines());
  newFilter.setSkip(getSkip());
  newFilter.setInitialized(true);
  return newFilter;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#fdaab00]]
HeadFilter 
12[[#fdaab00]]
TailFilter