@Override public final T next() { if (!hasNext()) { throw new IllegalStateException(); } return _list.get(++_position); }
@Override public final T previous() { if (!hasPrevious()) { throw new IllegalStateException(); } return _list.get(--_position); }
void bake() { if (_bakedAnnotation != null) { return; } final HashMap<String, Object> valueMap = new HashMap<>(_attributes.size()); for (int i = 0, n = _attributes.size(); i < n; i++) { valueMap.put( _attributes.get(i).getName(), _values.get(i) ); } @SuppressWarnings({ "unchecked", "UnnecessaryLocalVariable" }) final A annotation = (A)AnnotationParser.annotationForMap( _annotationType.getErasedClass(), valueMap ); _bakedAnnotation = annotation; } }
void bake() { if (_bakedAnnotation != null) { return; } final HashMap<String, Object> valueMap = new HashMap<>(_attributes.size()); for (int i = 0, n = _attributes.size(); i < n; i++) { valueMap.put( _attributes.get(i).getName(), _values.get(i) ); } @SuppressWarnings({ "unchecked", "UnnecessaryLocalVariable" }) final A annotation = (A)AnnotationParser.annotationForMap( _annotationType.getErasedClass(), valueMap ); _bakedAnnotation = annotation; } }
void bake() { if (_bakedAnnotation != null) { return; } final HashMap<String, Object> valueMap = new HashMap<>(_attributes.size()); for (int i = 0, n = _attributes.size(); i < n; i++) { valueMap.put( _attributes.get(i).getName(), _values.get(i) ); } @SuppressWarnings({ "unchecked", "UnnecessaryLocalVariable" }) final A annotation = (A)AnnotationParser.annotationForMap( _annotationType.getErasedClass(), valueMap ); _bakedAnnotation = annotation; } }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
private void writeAnnotation(final AnnotationBuilder<? extends Annotation> a) { _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(a.getAnnotationType().getSignature())); _dataBuffer.putShort(a.getValues().size()); final MethodList attributes = a.getAttributes(); final ReadOnlyList<Object> values = a.getValues(); for (int i = 0, n = attributes.size(); i < n; i++) { final MethodInfo attribute = attributes.get(i); _dataBuffer.putShort(_typeBuilder.getUtf8StringToken(attribute.getName())); writeAttributeType(values.get(i)); } }
final Object value = values.get(i);
final Object value = values.get(i);
final Object value = values.get(i);