T1 - The type of the first sequence of objects.TIterator1 - The type of the first iterator.T2 - The type of the second sequence of objects.TIterator2 - The type of the second iterator.T3 - The type of the third sequence of objects.TIterator3 - The type of the third iterator.public class ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>> extends java.lang.Object implements IInpIter<Tuple3<T1,T2,T3>,ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3>>
| Constructor and Description |
|---|
ZipIter3(TIterator1 first1,
TIterator2 first2,
TIterator3 first3)
Constructs a zip iterator from the specified objects.
|
ZipIter3(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> iter)
Constructs a new instance from another iterator.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Advance(int offset)
Adds an offset to an iterator.
|
void |
Advance(long offset)
Adds an offset to an iterator.
|
IteratorCategory |
Category()
Gets the iterator category.
|
ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> |
Copy()
Creates and returns a copy of the current instance.
|
Tuple3<T1,T2,T3> |
Current()
Returns a tuple of the current values.
|
void |
Dispose()
Performs application-defined tasks associated with freeing, releasing,
or resetting system resources or other cleanup.
|
long |
Distance(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> other)
Determines the number of increments between
this instance and a specified iterator.
|
boolean |
equals(java.lang.Object obj)
Tests whether this instance is equal to a specified
object.
|
boolean |
Equals(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> other)
Tests whether this instance is equal to a specified
object.
|
int |
hashCode()
Returns the hash code for this instance.
|
void |
Increment()
Increments all underlying iterators.
|
void |
ResetBegin()
Sets all underlying iterators to their initial position,
which is before the first element in the container.
|
void |
ResetEnd()
Sets all underlying iterators to their final position,
which is after the last element in the container.
|
public ZipIter3(TIterator1 first1, TIterator2 first2, TIterator3 first3)
first1 - An input iterator addressing the position
of the first element in the first range.first2 - An input iterator addressing the position
of the first element in the second range.first3 - An input iterator addressing the position
of the first element in the third range.public ZipIter3(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> iter)
iter - The iterator to copy.public void Dispose()
Dispose in interface IDisposablepublic IteratorCategory Category()
Category in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> Copy()
Copy in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public Tuple3<T1,T2,T3> Current()
Current in interface IInpIter<Tuple3<T1,T2,T3>,ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public void ResetBegin()
Remarks: At this position, Current is undefined. Therefore, you must call Increment to advance the iterator to the first element of the container before reading the value of Current.
ResetBegin in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public void ResetEnd()
Remarks: At this position, Current is undefined. Therefore, you must call Decrement to advance the iterator to the last element of the container before reading the value of Current.
ResetEnd in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public void Increment()
Increment in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>public void Advance(int offset)
Advance in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>offset - The number of positions the iterator is to be offset.public void Advance(long offset)
Advance in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>offset - The number of positions the iterator is to be offset.public long Distance(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> other)
Distance in interface IBaseIter<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>other - An iterator addressing the position
one past the final element in the range [this, other).InvalidOperationException - Thrown when the
argument iterator is invalid, or it is not reachable from the current
instance.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - An object to compare with this instance.public int hashCode()
hashCode in class java.lang.Objectpublic boolean Equals(ZipIter3<T1,TIterator1,T2,TIterator2,T3,TIterator3> other)
Equals in interface IEquatable<ZipIter3<T1,TIterator1 extends IInpIter<T1,TIterator1>,T2,TIterator2 extends IInpIter<T2,TIterator2>,T3,TIterator3 extends IInpIter<T3,TIterator3>>>other - An object to compare with this instance.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.