Sets the object at the index of the wrapped array @param index The index to set @param obj The object to set. If it is an NMSObject, it will be unwrapped automatically.
(int index, Object obj)
| 45 | * @param obj The object to set. If it is an {@link NMSObject}, it will be unwrapped automatically. |
| 46 | */ |
| 47 | public void set(int index, Object obj) { |
| 48 | if (obj instanceof NMSObject) { |
| 49 | obj = ((NMSObject) obj).getObject(); |
| 50 | } |
| 51 | Array.set(array, index, obj); |
| 52 | } |
| 53 | |
| 54 | public int length() { |
| 55 | return Array.getLength(array); |