本文整理匯總了Java中org.apache.commons.collections.IteratorUtils.EMPTY_ITERATOR屬性的典型用法代碼示例。如果您正苦於以下問題:Java IteratorUtils.EMPTY_ITERATOR屬性的具體用法?Java IteratorUtils.EMPTY_ITERATOR怎麽用?Java IteratorUtils.EMPTY_ITERATOR使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在類org.apache.commons.collections.IteratorUtils
的用法示例。
在下文中一共展示了IteratorUtils.EMPTY_ITERATOR屬性的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: membersTransactionsDetailsReport
@Override
@SuppressWarnings("unchecked")
public Iterator<MemberTransactionDetailsReportData> membersTransactionsDetailsReport(final MembersTransactionsReportParameters params) {
// Ensure the parameters are valid
if (!isValid(params)) {
return IteratorUtils.EMPTY_ITERATOR;
}
return accountDao.membersTransactionsDetailsReport(params);
}
示例2: membersTransactionsSummaryReport
@Override
@SuppressWarnings("unchecked")
public Iterator<MemberTransactionSummaryReportData> membersTransactionsSummaryReport(final MembersTransactionsReportParameters params) {
// Ensure the parameters are valid
if (!isValid(params)) {
return IteratorUtils.EMPTY_ITERATOR;
}
// Retrieve the members
final Iterator<Member> membersIterator = resolveMembersForTransactionsReport(params);
return new MembersTransactionsSummaryIterator(membersIterator, params);
}
示例3: getLocalFunctions
public Iterator getLocalFunctions() {
return localFunctions == null
? IteratorUtils.EMPTY_ITERATOR
: IteratorUtils.filteredIterator(localFunctions.iterator(),
new Predicate() {
public boolean evaluate(Object ob) {
JsUserDefinedMethod method = (JsUserDefinedMethod) ob;
return method.definedAsVar && !method.definedInVar;
}
});
}
示例4: getProperties
public Iterator getProperties() {
return members == null
? IteratorUtils.EMPTY_ITERATOR
: IteratorUtils.filteredIterator(members.values().iterator(),
new Predicate() {
public boolean evaluate(Object obj) {
return obj instanceof Property;
}
});
}
示例5: getMethods
public Iterator getMethods() {
return members == null
? IteratorUtils.EMPTY_ITERATOR
: IteratorUtils.filteredIterator(members.values().iterator(),
new Predicate() {
public boolean evaluate(Object obj) {
return obj instanceof Method;
}
});
}
示例6: iterator
/**
* 實現Iterable接口,可以for(Object item : page)遍曆使用
*/
@SuppressWarnings("unchecked")
public Iterator<T> iterator() {
return result == null ? IteratorUtils.EMPTY_ITERATOR : result.iterator();
}
示例7: getMembers
public Iterator getMembers() {
return members == null
? IteratorUtils.EMPTY_ITERATOR
: members.values().iterator();
}