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

de.larsgrefer.sass.embedded.importer.Importer Maven / Gradle / Ivy

There is a newer version: 4.0.0-m2
Show newest version
package de.larsgrefer.sass.embedded.importer;

import lombok.EqualsAndHashCode;
import lombok.Getter;

/**
 * @author Lars Grefer
 */
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public abstract class Importer {

    private static int idCounter = 0;

    @Getter
    @EqualsAndHashCode.Include
    private final int id = idCounter++;

    protected void checkId(int id) {
        if (id != getId()) {
            throw new IllegalArgumentException();
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy