Erfan
12/27/2017, 2:57 PMsealed class PointType(val value: Int, val title: String) {
object point: PointType(1, "خطی")
object candlestick: PointType(2, "شمعی")
companion object {
val allCases: Array<PointType> = arrayOf(point, candlestick)
}
}
and when I access allCases in java I get an array with size of 2, but the first element seems to be null!