import jp.nyatla.nyartoolkit.core.types.*;\r
import jp.nyatla.utils.NyObjectStack;\r
\r
-public class NyARIntPointStack extends NyObjectStack\r
+public class NyARIntPointStack extends NyObjectStack<NyARIntPoint2d>\r
{\r
public NyARIntPointStack(int i_length)\r
{\r
- super(new NyARIntPoint[i_length]);\r
-\r
+ super(i_length,NyARIntPoint2d.class);\r
+ return;\r
}\r
-\r
- protected void onReservRequest(int i_start, int i_end, Object[] i_buffer)\r
+ protected NyARIntPoint2d createElement()\r
{\r
- for (int i = i_start; i < i_end; i++) {\r
- i_buffer[i] = new NyARIntPoint();\r
- }\r
- }\r
-\r
+ return new NyARIntPoint2d();\r
+ } \r
}\r