public static final class RestServerEndpoint.RestHandlerUrlComparator.CaseInsensitiveOrderComparator extends Object implements Comparator<String>, Serializable
The comparator orders the Rest URLs such that URLs with path parameters are ordered behind those without parameters. E.g.: /jobs /jobs/overview /jobs/:jobid /jobs/:jobid/config /:*
IMPORTANT: This comparator is highly specific to how Netty path parameters are encoded. Namely with a preceding ':' character.
Constructor and Description |
---|
CaseInsensitiveOrderComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String s1,
String s2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(String s1, String s2)
compare
in interface Comparator<String>
Copyright © 2014–2021 The Apache Software Foundation. All rights reserved.