Static Inner Class in Kotlin

You can also change the "class" to "object"

class OuterA {
  object InnerB {
  ... }
}

OR

object OuterA {
  object InnerB {
  ... }
}

Just omit the inner in Kotlin.

Inner class (holding reference to outer object)

Java:

class A {
    class B {
    ...
    }
}

Kotlin:

class A {
    inner class B {
    ...
    }
}

Static inner class aka nested class (no reference to outer object)

Java:

class A {
    static class B {
    ...
    }
}

Kotlin:

class A {
    class B {
    ...
    }
}