📄 attributelist.java
字号:
// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: AttributeList.java
package com.heaton.bot;
import java.util.Vector;
// Referenced classes of package com.heaton.bot:
// Attribute
public class AttributeList extends Attribute
implements Cloneable
{
public Object clone()
{
AttributeList rtn = new AttributeList();
for(int i = 0; i < vec.size(); i++)
rtn.add((Attribute)get(i).clone());
return rtn;
}
public AttributeList()
{
super("", "");
vec = new Vector();
}
public synchronized Attribute get(int id)
{
if(id < vec.size())
return (Attribute)vec.elementAt(id);
else
return null;
}
public synchronized Attribute get(String id)
{
for(int i = 0; get(i) != null; i++)
if(get(i).getName().equalsIgnoreCase(id))
return get(i);
return null;
}
public synchronized void add(Attribute a)
{
vec.addElement(a);
}
public synchronized void clear()
{
vec.removeAllElements();
}
public synchronized boolean isEmpty()
{
return vec.size() <= 0;
}
public synchronized int length()
{
return vec.size();
}
public synchronized void set(String name, String value)
{
if(name == null)
return;
if(value == null)
value = "";
Attribute a = get(name);
if(a == null)
{
a = new Attribute(name, value);
add(a);
} else
{
a.setValue(value);
}
}
protected Vector vec;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -