コード例 #1
0
            protected internal override Document FetchNextOrNull()
            {
//JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops:
                if (!ScoreDocs.hasNext())
                {
                    return(null);
                }
//JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops:
                ScoreDocs.next();
                return(CurrentDoc);
            }
コード例 #2
0
            protected internal override bool FetchNext()
            {
//JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops:
                if (ScoreDocs.hasNext())
                {
//JAVA TO C# CONVERTER TODO TASK: Java iterators are only converted within the context of 'while' and 'for' loops:
                    ScoreDocs.next();
                    Index++;
                    return(CurrentValue != -1 && Next(CurrentValue));
                }
                return(false);
            }