/*
 * Decompiled with CFR 0.152.
 */
package com.l7tech.server.communityschemas;

import com.l7tech.server.communityschemas.SchemaHandle;
import com.l7tech.server.communityschemas.SchemaManagerImpl;
import com.l7tech.server.communityschemas.p;
import java.util.Comparator;

class h
implements Comparator<SchemaHandle> {
    h(SchemaManagerImpl schemaManagerImpl) {
    }

    @Override
    public int compare(SchemaHandle schemaHandle, SchemaHandle schemaHandle2) {
        p p2 = schemaHandle.getTarget();
        p p3 = schemaHandle2.getTarget();
        if (p2 == null && p3 == null) {
            return 0;
        }
        if (p2 == null) {
            return -1;
        }
        if (p3 == null) {
            return 1;
        }
        Long l2 = p2.h();
        Long l3 = p3.h();
        return l2.compareTo(l3);
    }
}

