Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
57 | 2 | 0 | 1.000 | class_body_declarations[7] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 57 | 120 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/DocumentCharacterIterator.java |
2 | 57 | 107 | plugins/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/text/SequenceCharacterIterator.java |
| ||||
/* * @see java.text.CharacterIterator#next() */ public char next() { return setIndex(Math.min(fIndex + 1, getEndIndex())); } /* * @see java.text.CharacterIterator#previous() */ public char previous() { if (fIndex > getBeginIndex()) { return setIndex(fIndex - 1); } else { return DONE; } } /* * @see java.text.CharacterIterator#setIndex(int) */ public char setIndex(int position) { if (position >= getBeginIndex() && position <= getEndIndex()) fIndex = position; else throw new IllegalArgumentException(); invariant(); return current(); } /* * @see java.text.CharacterIterator#getBeginIndex() */ public int getBeginIndex() { return fFirst; } /* * @see java.text.CharacterIterator#getEndIndex() */ public int getEndIndex() { return fLast; } /* * @see java.text.CharacterIterator#getIndex() */ public int getIndex() { return fIndex; } /* * @see java.text.CharacterIterator#clone() */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } } |
| ||||
/* * @see java.text.CharacterIterator#next() */ public char next() { return setIndex(Math.min(fIndex + 1, getEndIndex())); } /* * @see java.text.CharacterIterator#previous() */ public char previous() { if (fIndex > getBeginIndex()) { return setIndex(fIndex - 1); } else { return DONE; } } /* * @see java.text.CharacterIterator#setIndex(int) */ public char setIndex(int position) { if (position >= getBeginIndex() && position <= getEndIndex()) fIndex = position; else throw new IllegalArgumentException(); invariant(); return current(); } /* * @see java.text.CharacterIterator#getBeginIndex() */ public int getBeginIndex() { return fFirst; } /* * @see java.text.CharacterIterator#getEndIndex() */ public int getEndIndex() { return fLast; } /* * @see java.text.CharacterIterator#getIndex() */ public int getIndex() { return fIndex; } /* * @see java.text.CharacterIterator#clone() */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } } |
| |||
/* * @see java.text.CharacterIterator#next() */ public char next() { return setIndex(Math.min(fIndex + 1, getEndIndex())); } /* * @see java.text.CharacterIterator#previous() */ public char previous() { if (fIndex > getBeginIndex()) { return setIndex(fIndex - 1); } else { return DONE; } } /* * @see java.text.CharacterIterator#setIndex(int) */ public char setIndex(int position) { if (position >= getBeginIndex() && position <= getEndIndex()) fIndex = position; else throw new IllegalArgumentException(); invariant(); return current(); } /* * @see java.text.CharacterIterator#getBeginIndex() */ public int getBeginIndex() { return fFirst; } /* * @see java.text.CharacterIterator#getEndIndex() */ public int getEndIndex() { return fLast; } /* * @see java.text.CharacterIterator#getIndex() */ public int getIndex() { return fIndex; } /* * @see java.text.CharacterIterator#clone() */ public Object clone() { try { return super.clone(); } catch (CloneNotSupportedException e) { throw new InternalError(); } } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |