org.apache.commons.collections4.iterators.ArrayIterator Java Examples

The following examples show how to use org.apache.commons.collections4.iterators.ArrayIterator. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: Command.java    From riiablo with Apache License 2.0 4 votes vote down vote up
@NonNull
@Override
public Iterator<String> iterator() {
  return new ArrayIterator<>(ARGS, compressed ? 1 : 0);
}
 
Example #2
Source File: TupleMatrixDouble.java    From OSPREY3 with GNU General Public License v2.0 4 votes vote down vote up
public void fill(double[] vals) {
	ArrayIterator<Double> iter = new ArrayIterator<>(vals);
	fill(iter);
	assert (iter.hasNext() == false);
}
 
Example #3
Source File: Atom.java    From XHAIL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Iterator<Atom> iterator() {
	return new ArrayIterator<>(terms);
}
 
Example #4
Source File: Clause.java    From XHAIL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Iterator<Literal> iterator() {
	return new ArrayIterator<>(body);
}
 
Example #5
Source File: Scheme.java    From XHAIL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Iterator<Scheme> iterator() {
	return new ArrayIterator<>(terms);
}
 
Example #6
Source File: Hypothesis.java    From XHAIL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Iterator<Atom> iterator() {
	return new ArrayIterator<>(literals);
}
 
Example #7
Source File: Answers.java    From XHAIL with GNU General Public License v3.0 4 votes vote down vote up
@Override
public Iterator<Answer> iterator() {
	return new ArrayIterator<>(answers);
}