@Override public final boolean isEmpty() { return size() == 0; }
@Override public final boolean hasNext() { return _position + 1 < _list.size(); }
ReadOnlyCollectionIterator(final ReadOnlyList<T> list, final int startPosition) { if (startPosition < -1 || startPosition >= list.size()) { throw new IllegalArgumentException(); } _position = startPosition; _list = list; }
public void addCustomAnnotation(final AnnotationBuilder annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public void addCustomAnnotation(final AnnotationBuilder annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
public void addCustomAnnotation(final AnnotationBuilder annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@SuppressWarnings("unchecked") public void addCustomAnnotation(final AnnotationBuilder<? extends Annotation> annotation) { VerifyArgument.notNull(annotation, "annotation"); final AnnotationBuilder[] newAnnotations = new AnnotationBuilder[this._annotations.size() + 1]; _annotations.toArray(newAnnotations); newAnnotations[this._annotations.size()] = annotation; _annotations = new ReadOnlyList<AnnotationBuilder<? extends Annotation>>(newAnnotations); }
@NotNull @Override public ReadOnlyList<T> subList(final int fromIndex, final int toIndex) { subListRangeCheck(fromIndex, toIndex, size()); return new ReadOnlyList<>(this, _offset + fromIndex, _offset + toIndex); }
@NotNull @Override public ReadOnlyList<T> subList(final int fromIndex, final int toIndex) { subListRangeCheck(fromIndex, toIndex, size()); return new ReadOnlyList<>(this, _offset + fromIndex, _offset + toIndex); }
@NotNull @Override public ReadOnlyList<T> subList(final int fromIndex, final int toIndex) { subListRangeCheck(fromIndex, toIndex, size()); return new ReadOnlyList<>(this, _offset + fromIndex, _offset + toIndex); }
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)); } }