本文整理汇总了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();
}