Example usage for com.google.common.collect Iterators forArray

List of usage examples for com.google.common.collect Iterators forArray

Introduction

In this page you can find the example usage for com.google.common.collect Iterators forArray.

Prototype

static <T> UnmodifiableListIterator<T> forArray(final T[] array, final int offset, int length, int index) 

Source Link

Document

Returns a list iterator containing the elements in the specified range of array in order, starting at the specified index.

Usage

From source file:org.sonar.pickbasic.tree.impl.statement.LockStatementMultiLineTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(lockKeyword, expression, thenClauseMultiLine, semicolonToken);
}

From source file:org.sonar.pickbasic.tree.impl.statement.LockStatementSingleLineTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(lockKeyword, expression, thenClauseSingleLine, semicolonToken);
}

From source file:org.sonar.pickbasic.tree.impl.statement.CrtStatementTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(crtKeyword, expression, colonToken, semicolonToken);
}

From source file:org.sonar.pickbasic.tree.impl.statement.SelectStatementTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(selectKeyword, expression, toClauses, semicolonToken);
}

From source file:org.sonar.pickbasic.tree.impl.statement.BreakKeyStatementTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(breakKeyKeyword, expression, onOrOffKeyword, semicolonToken);
}

From source file:org.sonar.javascript.model.implementations.statement.ForStatementTreeImpl.java

@Override
public Iterator<Tree> childrenIterator() {
    return Iterators.forArray(init, condition, update, statement);
}