You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
THIS ISSUE IS POSTED AS A COLLEGE ASSIGNMENT ON SOFTWARE DESIGN PATTERNS, PLEASE CLOSE THE
ISSUE IF YOU FIND IT TO BE USELESS.
Line referenced above declares an anonymous class to instantiate an Iterator object. However, this could be redesigned taking into account the Iterator Pattern, as follows:
In consequence, the FileSegment class (and other possible classes in the Collection package) will be relieved from the responsibility of declaring the logic of the iterators they use, in addition to enabling shared use of iterators among several classes.
The text was updated successfully, but these errors were encountered:
anserini/src/main/java/io/anserini/collection/FileSegment.java
Line 113 in cfc1c99
THIS ISSUE IS POSTED AS A COLLEGE ASSIGNMENT ON SOFTWARE DESIGN PATTERNS, PLEASE CLOSE THE
ISSUE IF YOU FIND IT TO BE USELESS.
Line referenced above declares an anonymous class to instantiate an Iterator object. However, this could be redesigned taking into account the Iterator Pattern, as follows:
In consequence, the FileSegment class (and other possible classes in the Collection package) will be relieved from the responsibility of declaring the logic of the iterators they use, in addition to enabling shared use of iterators among several classes.
The text was updated successfully, but these errors were encountered: