static boolean isPowerOf10(int n) {
        return switch (n) {
            case 1:
            case 10:
            case 100:
            case 1_000:
            case 10_000:
            case 100_000:
            case 1_000_000:
            case 10_000_000:
            case 100_000_000:
            case 1_000_000_000:
                yield true;
                // fall-through (Comment to tell checkstyle we want to fall through cases)
            default:
                yield false;
        };
    }
@param n The number to test
@return True if n is a power of ten, e.g. if n==10
stroom-bytebuffer/src/main/java/stroom/bytebuffer/ByteBufferPoolImpl4.java