Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
6 | 4 | 2 | 0.973 | class_body_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 6 | 76 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
2 | 6 | 87 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
3 | 6 | 98 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
4 | 6 | 109 | plugins/org.eclipse.jdt.debug/jdi/org/eclipse/jdi/internal/PrimitiveValueImpl.java |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public double doubleValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (double) 1: (double) 0; else if (fValue instanceof Character) return ((Character) fValue).charValue(); else return ((Number) fValue).doubleValue(); } |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public float floatValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (float) 1: (float) 0; else if (fValue instanceof Character) return ((Character) fValue).charValue(); else return ((Number) fValue).floatValue(); } |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public int intValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (int) 1: (int) 0; else if (fValue instanceof Character) return ((Character) fValue).charValue(); else return ((Number) fValue).intValue(); } |
| ||||
/** * @return Returns Primitive Value converted to required type. */ public long longValue() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? (long) 1: (long) 0; else if (fValue instanceof Character) return ((Character) fValue).charValue(); else return ((Number) fValue).longValue(); } |
| |||
/** * @return Returns Primitive Value converted to required type. */ public [[#variableb9ddfe40]] [[#variableb9ddfd20]]() { if (fValue instanceof Boolean) return ((Boolean) fValue).booleanValue() ? ( [[#variableb9ddfe40]]) 1: ( [[#variableb9ddfe40]]) 0; else if (fValue instanceof Character) return ((Character) fValue).charValue(); else return ((Number) fValue). [[#variableb9ddfd20]](); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#b9ddfe40]] | double |
1 | 2 | [[#b9ddfe40]] | float |
1 | 3 | [[#b9ddfe40]] | int |
1 | 4 | [[#b9ddfe40]] | long |
2 | 1 | [[#b9ddfd20]] | doubleValue |
2 | 2 | [[#b9ddfd20]] | floatValue |
2 | 3 | [[#b9ddfd20]] | intValue |
2 | 4 | [[#b9ddfd20]] | longValue |