T - The type of objects to iterate.TContainer - The type of container that contains
the elements inserted into the back.public class BackInsertIter<T,TContainer extends IBackSequence<T>> extends java.lang.Object implements IOutIter<T,BackInsertIter<T,TContainer>>
| Constructor and Description |
|---|
BackInsertIter(BackInsertIter<T,TContainer> x)
Constructs a new instance from another iterator.
|
BackInsertIter(TContainer cnt)
Constructs a BackInsertIter that inserts elements
after the last element in a container.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Advance(int offset)
Used to implement the Advance method.
|
void |
Advance(long offset)
Used to implement the Advance method.
|
IteratorCategory |
Category()
Gets the iterator category.
|
BackInsertIter<T,TContainer> |
Copy()
Creates and returns a copy of the current instance.
|
void |
Dispose()
Performs application-defined tasks associated with freeing, releasing,
or resetting system resources or other cleanup.
|
long |
Distance(BackInsertIter<T,TContainer> other)
Used to implement the Distance method.
|
boolean |
Equals(BackInsertIter<T,TContainer> other)
Tests whether this instance is equal to a specified
object.
|
boolean |
equals(java.lang.Object obj)
Tests whether this instance is equal to a specified
object.
|
int |
hashCode()
Returns the hash code for this instance.
|
void |
Increment()
Used to implement the IOutIter Increment method.
|
BackInsertIter<T,TContainer> |
Next()
Used to implement the IOutIter Next method.
|
void |
ResetBegin()
Used to implement the IOutIter ResetBegin method.
|
void |
ResetEnd()
Used to implement the IOutIter ResetEnd method.
|
void |
SetCurrent(T value)
Inserts an element at the back of the container.
|
public BackInsertIter(TContainer cnt)
Remarks: A BackInsertIter must always be initialized with its container.
cnt - The container into which the BackInsertIter
is to insert elements.java.lang.NullPointerException - When the container is null.public BackInsertIter(BackInsertIter<T,TContainer> x)
x - The iterator to copy.public void Dispose()
Dispose in interface IDisposablepublic IteratorCategory Category()
Category in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>public BackInsertIter<T,TContainer> Copy()
Copy in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>public void SetCurrent(T value)
SetCurrent in interface IOutIter<T,BackInsertIter<T,TContainer extends IBackSequence<T>>>value - The new value for the current element.public void ResetBegin()
ResetBegin in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>public void ResetEnd()
ResetEnd in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>public void Increment()
Increment in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>public BackInsertIter<T,TContainer> Next()
public void Advance(int offset)
Advance in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>offset - The number of positions the iterator is to be offset.public void Advance(long offset)
Advance in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>offset - The number of positions the iterator is to be offset.public long Distance(BackInsertIter<T,TContainer> other)
Distance in interface IBaseIter<BackInsertIter<T,TContainer extends IBackSequence<T>>>other - An input iterator addressing the position
one past the final element in the range [this, other).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(BackInsertIter<T,TContainer> other)
Equals in interface IEquatable<BackInsertIter<T,TContainer extends IBackSequence<T>>>other - An object to compare with this instance.Copyright© 2012 Progeneric Systems, Inc. All Rights Reserved.