判断List是否包含某元素Job
static boolean listIn(List list,
anyType element)
{
boolean ret = false;
ListEnumerator listE = list.getEnumerator();
;
if (list.typeId() != typeof(element))
ret = false;
else
{
while (listE.moveNext())
{
if (listE.current() == element)
ret = true;
}
}
return ret;
}