
com.mangofactory.swagger.ordering.ApiDescriptionLexicographicalOrdering Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of swagger-springmvc Show documentation
Show all versions of swagger-springmvc Show documentation
This project integrates swagger with the Spring Web MVC framework
package com.mangofactory.swagger.ordering;
import com.google.common.collect.Ordering;
import com.wordnik.swagger.model.ApiDescription;
public class ApiDescriptionLexicographicalOrdering extends Ordering {
@Override
public int compare(ApiDescription apiDescription, ApiDescription other) {
return apiDescription.path().compareTo(other.path());
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy