com.vladsch.flexmark.util.sequence.mappers.ChangeCase Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of driver-cql-shaded Show documentation
Show all versions of driver-cql-shaded Show documentation
A Shaded CQL ActivityType driver for http://nosqlbench.io/
package com.vladsch.flexmark.util.sequence.mappers;
public class ChangeCase {
final public static CharMapper toUpperCase = new ToUpperCase();
final public static CharMapper toLowerCase = new ToLowerCase();
private static class ToLowerCase implements CharMapper {
ToLowerCase() {}
@Override
public char map(char c) {
return Character.isUpperCase(c) ? Character.toLowerCase(c) : c;
}
}
private static class ToUpperCase implements CharMapper {
ToUpperCase() {}
@Override
public char map(char c) {
return Character.isLowerCase(c) ? Character.toUpperCase(c) : c;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy