net.sourceforge.plantuml.salt.element.TopFirst Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.salt.element;
import java.util.Comparator;
import net.sourceforge.plantuml.salt.Cell;
class TopFirst implements Comparator {
public int compare(Cell c0, Cell c1) {
final int diffNb = c0.getNbRows() - c1.getNbRows();
if (diffNb != 0) {
return diffNb;
}
final int diffPos = c0.getMinRow() - c1.getMinRow();
return diffPos;
}
}
|