private static final String ERRMSG_NOELEM =
"missing element in ARRAY";
- private final List<JsValue> valueList = new LinkedList<JsValue>();
+ private final List<JsValue> valueList = new LinkedList<>();
private boolean changed = false;
/**
for(JsValue value : this.valueList){
if( ! (value instanceof JsComposition) ) continue;
- JsComposition composition = (JsComposition) value;
+ JsComposition<?> composition = (JsComposition) value;
if(composition.hasChanged()) return true;
}
for(JsValue value : this.valueList){
if( ! (value instanceof JsComposition) ) continue;
- JsComposition composition = (JsComposition) value;
+ JsComposition<?> composition = (JsComposition) value;
composition.setUnchanged();
}
* @return 反復子イテレータ
* @see UnmodIterator
*/
+ @Override
public Iterator<JsValue> iterator(){
return UnmodIterator.unmodIterator(this.valueList);
}