// Decompiled by DJ v2.6.6.51 Copyright 2000 Atanas Neshkov  Date: 6/15/2001 17:43:19
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   com/macromedia/generator/app/GenCacheExpireCompare

package com.macromedia.generator.app;


// Referenced classes of package com.macromedia.generator.app:
//            GenCacheEntry

class GenCacheExpireCompare
{

    GenCacheExpireCompare()
    {
    }

    public static int compare(Object obj, Object obj1)
    {
        GenCacheEntry gencacheentry = (GenCacheEntry)obj;
        GenCacheEntry gencacheentry1 = (GenCacheEntry)obj1;
        long l = gencacheentry.time + gencacheentry.expires;
        long l1 = gencacheentry1.time + gencacheentry1.expires;
        if(l > l1)
            return 1;
        if(l < l1)
            return -1;
        if(gencacheentry.hits > gencacheentry1.hits)
            return 1;
        return gencacheentry.hits >= gencacheentry1.hits ? 0 : -1;
    }
}