Created
November 23, 2010 15:40
-
-
Save leogomes/711951 to your computer and use it in GitHub Desktop.
right memory iteration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RightTuple first = new RightTuple( | |
(InternalFactHandle) expectedFactHandles.get(0)); | |
List<RightTuple> actualRightTuples = new ArrayList<RightTuple>(); | |
for (RightTuple rightTuple = rightMemory.getFirst(first); rightTuple != null; rightTuple = (RightTuple) rightTuple.getNext()) { | |
actualRightTuples.add(rightTuple); | |
} | |
// ---- | |
Iterator it = rightMemory.iterator(); | |
for (RightTuple rt = (RightTuple) it.next(); rt != null; rt = (RightTuple) it.next()) { | |
actualRightTuples.add(rt); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment