io.annot8.common.data.utils.SortUtils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of annot8-common-data Show documentation
Show all versions of annot8-common-data Show documentation
Common data (bounds and content) definitions
The newest version!
/* Annot8 (annot8.io) - Licensed under Apache-2.0. */
package io.annot8.common.data.utils;
import io.annot8.api.annotations.Annotation;
import io.annot8.common.data.bounds.SpanBounds;
import java.util.Comparator;
public class SortUtils {
private SortUtils() {
// Private constructor for utility class
}
public static final Comparator SORT_BY_SPANBOUNDS =
Comparator.comparingInt(
a -> a.getBounds(SpanBounds.class).orElse(new SpanBounds(0, 0)).getBegin());
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy