65 // make the index properties not configurable
66 return global.newDataDescriptor(getObject(index), false, true, true);
67 }
68
69 @Override
70 public ArrayData copy() {
71 throw unsupported("copy");
72 }
73
74 @Override
75 public Object[] asObjectArray() {
76 throw unsupported("asObjectArray");
77 }
78
79 @Override
80 public void setLength(final long length) {
81 throw new UnsupportedOperationException("setLength");
82 }
83
84 @Override
85 public void shiftLeft(final int by) {
86 throw unsupported("shiftLeft");
87 }
88
89 @Override
90 public ArrayData shiftRight(final int by) {
91 throw unsupported("shiftRight");
92 }
93
94 @Override
95 public ArrayData ensure(final long safeIndex) {
96 if (safeIndex < buf.capacity()) {
97 return this;
98 }
99
100 throw unsupported("ensure");
101 }
102
103 @Override
104 public ArrayData shrink(final long newLength) {
105 throw unsupported("shrink");
|
65 // make the index properties not configurable
66 return global.newDataDescriptor(getObject(index), false, true, true);
67 }
68
69 @Override
70 public ArrayData copy() {
71 throw unsupported("copy");
72 }
73
74 @Override
75 public Object[] asObjectArray() {
76 throw unsupported("asObjectArray");
77 }
78
79 @Override
80 public void setLength(final long length) {
81 throw new UnsupportedOperationException("setLength");
82 }
83
84 @Override
85 public ArrayData shiftLeft(final int by) {
86 throw unsupported("shiftLeft");
87 }
88
89 @Override
90 public ArrayData shiftRight(final int by) {
91 throw unsupported("shiftRight");
92 }
93
94 @Override
95 public ArrayData ensure(final long safeIndex) {
96 if (safeIndex < buf.capacity()) {
97 return this;
98 }
99
100 throw unsupported("ensure");
101 }
102
103 @Override
104 public ArrayData shrink(final long newLength) {
105 throw unsupported("shrink");
|