public static class IdStrategy.CaseInsensitive extends IdStrategy
IdStrategy
Modifier and Type | Class and Description |
---|---|
static class |
IdStrategy.CaseInsensitive.DescriptorImpl |
IdStrategy.CaseInsensitive, IdStrategy.CaseSensitive, IdStrategy.CaseSensitiveEmailAddress
ExtensionPoint.LegacyInstancesAreScopedToHudson
CASE_INSENSITIVE
Constructor and Description |
---|
CaseInsensitive() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String id1,
String id2)
Compare tow IDs and return their sorting order.
|
String |
filenameOf(String id)
Converts an ID into a name that for use as a filename.
|
String |
keyFor(String id)
Converts an ID into a key for use in a Java Map.
|
all, equals, equals, getDescriptor, hashCode, idFromFilename, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
@Nonnull public String filenameOf(@Nonnull String id)
IdStrategy
filenameOf
in class IdStrategy
id
- the id. Note, this method assumes that the id does not contain any filesystem unsafe characters.@Nonnull public String keyFor(@Nonnull String id)
keyFor
in class IdStrategy
id
- the id.public int compare(@Nonnull String id1, @Nonnull String id2)
IdStrategy.equals(String, String)
is true
then this
must return 0
but IdStrategy.compare(String, String)
returning 0
need not imply that
IdStrategy.equals(String, String)
is true
.compare
in interface Comparator<String>
compare
in class IdStrategy
id1
- the first id.id2
- the second id.Copyright © 2017. All rights reserved.