All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.legaldocml.util.Equals Maven / Gradle / Ivy

The newest version!
package io.legaldocml.util;

import io.legaldocml.akn.attribute.CoreReq;

import java.util.Objects;

/**
 * @author Jacques Militello
 */
public final class Equals {

    private Equals() {
    }

    public static boolean doEquals(CoreReq left, Object right) {
        return left == right || (right != null) && left.getClass().isAssignableFrom(right.getClass())
                && left.getEid() != null && Objects.equals(left.getEid(), ((CoreReq) right).getEid());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy