de.larsgrefer.sass.embedded.importer.Importer Maven / Gradle / Ivy
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