iteratorfiltersupport.java

来自「struts 2 核心包 的源码 有错误是难免的」· Java 代码 · 共 56 行

JAVA
56
字号
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   IteratorFilterSupport.java

package org.apache.struts2.util;

import java.util.Enumeration;
import java.util.Iterator;

// Referenced classes of package org.apache.struts2.util:
//			MakeIterator

public abstract class IteratorFilterSupport
{
	public class EnumerationIterator
		implements Iterator
	{

		Enumeration enumeration;
		final IteratorFilterSupport this$0;

		public boolean hasNext()
		{
			return enumeration.hasMoreElements();
		}

		public Object next()
		{
			return enumeration.nextElement();
		}

		public void remove()
		{
			throw new UnsupportedOperationException("Remove is not supported in IteratorFilterSupport.");
		}

		public EnumerationIterator(Enumeration aEnum)
		{
			this$0 = IteratorFilterSupport.this;
			super();
			enumeration = aEnum;
		}
	}


	public IteratorFilterSupport()
	{
	}

	protected Object getIterator(Object source)
	{
		return MakeIterator.convert(source);
	}
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?