package com.capgemini.reports.definition.r20report.comparator;

import com.capgemini.reports.snecmaobjects.generic.AbstractGeneric;

import java.io.Serializable;
import java.util.Comparator;

public class GenericComparator implements Comparator<AbstractGeneric>, Serializable {
    private static final long serialVersionUID = -2723597994389438L;

    @Override
    public int compare(final AbstractGeneric obj1, final AbstractGeneric obj2) {
        return obj1.getItemId().compareTo(obj2.getItemId());
    }
}
