111 @Override 112 public ArrayData set(final int index, final Object value, final boolean strict) { 113 undefined.clear(index); 114 115 if (value == UNDEFINED) { 116 undefined.set(index); 117 return this; 118 } 119 120 return super.set(index, value, strict); 121 } 122 123 @Override 124 public ArrayData set(final int index, final int value, final boolean strict) { 125 undefined.clear(index); 126 127 return super.set(index, value, strict); 128 } 129 130 @Override 131 public ArrayData set(final int index, final long value, final boolean strict) { 132 undefined.clear(index); 133 134 return super.set(index, value, strict); 135 } 136 137 @Override 138 public ArrayData set(final int index, final double value, final boolean strict) { 139 undefined.clear(index); 140 141 return super.set(index, value, strict); 142 } 143 144 @Override 145 public int getInt(final int index) { 146 if (undefined.isSet(index)) { 147 return 0; 148 } 149 150 return super.getInt(index); 151 } 152 153 @Override 154 public int getIntOptimistic(final int index, final int programPoint) { 155 if (undefined.isSet(index)) { 156 throw new UnwarrantedOptimismException(UNDEFINED, programPoint); 157 } 158 159 return super.getIntOptimistic(index, programPoint); 160 } 161 162 @Override 163 public long getLong(final int index) { 164 if (undefined.isSet(index)) { 165 return 0L; 166 } 167 168 return super.getLong(index); 169 } 170 171 @Override 172 public long getLongOptimistic(final int index, final int programPoint) { 173 if (undefined.isSet(index)) { 174 throw new UnwarrantedOptimismException(UNDEFINED, programPoint); 175 } 176 177 return super.getLongOptimistic(index, programPoint); 178 } 179 180 @Override 181 public double getDouble(final int index) { 182 if (undefined.isSet(index)) { 183 return Double.NaN; 184 } 185 186 return super.getDouble(index); 187 } 188 189 @Override 190 public double getDoubleOptimistic(final int index, final int programPoint) { 191 if (undefined.isSet(index)) { 192 throw new UnwarrantedOptimismException(UNDEFINED, programPoint); 193 } 194 195 return super.getDoubleOptimistic(index, programPoint); 196 } 197 | 111 @Override 112 public ArrayData set(final int index, final Object value, final boolean strict) { 113 undefined.clear(index); 114 115 if (value == UNDEFINED) { 116 undefined.set(index); 117 return this; 118 } 119 120 return super.set(index, value, strict); 121 } 122 123 @Override 124 public ArrayData set(final int index, final int value, final boolean strict) { 125 undefined.clear(index); 126 127 return super.set(index, value, strict); 128 } 129 130 @Override 131 public ArrayData set(final int index, final double value, final boolean strict) { 132 undefined.clear(index); 133 134 return super.set(index, value, strict); 135 } 136 137 @Override 138 public int getInt(final int index) { 139 if (undefined.isSet(index)) { 140 return 0; 141 } 142 143 return super.getInt(index); 144 } 145 146 @Override 147 public int getIntOptimistic(final int index, final int programPoint) { 148 if (undefined.isSet(index)) { 149 throw new UnwarrantedOptimismException(UNDEFINED, programPoint); 150 } 151 152 return super.getIntOptimistic(index, programPoint); 153 } 154 155 @Override 156 public double getDouble(final int index) { 157 if (undefined.isSet(index)) { 158 return Double.NaN; 159 } 160 161 return super.getDouble(index); 162 } 163 164 @Override 165 public double getDoubleOptimistic(final int index, final int programPoint) { 166 if (undefined.isSet(index)) { 167 throw new UnwarrantedOptimismException(UNDEFINED, programPoint); 168 } 169 170 return super.getDoubleOptimistic(index, programPoint); 171 } 172 |