117 |
throws IllegalArgumentException |
throws IllegalArgumentException |
118 |
{ |
{ |
119 |
if (data == null) |
if (data == null) |
120 |
return (float[])this.data.clone(); |
return (float[])this.data.clone(); |
121 |
|
|
122 |
if (data.length < this.data.length) |
if (data.length < this.data.length) |
123 |
throw new IllegalArgumentException(); |
throw new IllegalArgumentException(); |
131 |
*/ |
*/ |
132 |
public Object clone() |
public Object clone() |
133 |
{ |
{ |
134 |
return new Kernel(width, height, data); |
try |
135 |
|
{ |
136 |
|
return super.clone(); |
137 |
|
} |
138 |
|
catch (CloneNotSupportedException e) |
139 |
|
{ |
140 |
|
throw (Error) new InternalError().initCause(e); // Impossible |
141 |
|
} |
142 |
} |
} |
143 |
} |
} |