www.pudn.com > 33_online_store.rar > IndexEntry.java
package index;
class IndexEntry
{
int file;
int occurences;
public boolean equals(Object o)
{
boolean retVal = false;
if((o!=null)&&(o instanceof IndexEntry)
&&(((IndexEntry)o).file == file))
{
retVal = true;
}
return retVal;
}
public String toString()
{
return ""+file+" "+occurences;
}
}