📄 inthashtableenumerator.java
字号:
// Decompiled by DJ v3.5.5.77 Copyright 2003 Atanas Neshkov Date: 2003-6-23 11:15:40
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: IntHashtable.java
package com.struts2.framework.util;
import java.util.Enumeration;
import java.util.NoSuchElementException;
// Referenced classes of package org.fat32.util:
// IntHashtableEntry
class IntHashtableEnumerator
implements Enumeration
{
public boolean hasMoreElements()
{
if(entry != null)
return true;
while(index-- > 0)
if((entry = table[index]) != null)
return true;
return false;
}
public Object nextElement()
{
if(entry == null)
while(index-- > 0 && (entry = table[index]) == null) ;
if(entry != null)
{
IntHashtableEntry e = entry;
entry = e.next;
return keys ? new Integer(e.key) : e.value;
} else
{
throw new NoSuchElementException("IntHashtableEnumerator");
}
}
IntHashtableEnumerator(IntHashtableEntry table[], boolean keys)
{
this.table = table;
this.keys = keys;
index = table.length;
}
boolean keys;
int index;
IntHashtableEntry table[];
IntHashtableEntry entry;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -