Skip to content

Commit 901a806

Browse files
canBeUnfolded kdoc
1 parent 28e515d commit 901a806

File tree

1 file changed

+8
-1
lines changed
  • core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api

1 file changed

+8
-1
lines changed

core/src/main/kotlin/org/jetbrains/kotlinx/dataframe/impl/api/toDataFrame.kt

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,14 @@ private val valueTypes = setOf(
6161
)
6262

6363
/**
64-
* Check
64+
* Determines whether a class can be unfolded into its properties.
65+
*
66+
* A class is considered **unfoldable** if it has at least one public property
67+
* or getter-like function. This excludes:
68+
* - **Value types** such as primitives, enums, and date-time types.
69+
* - **Classes without properties**, including empty or marker classes.
70+
*
71+
* @return `true` if the class has unfoldable properties, `false` otherwise.
6572
*/
6673
@PublishedApi
6774
internal val KClass<*>.canBeUnfolded: Boolean

0 commit comments

Comments
 (0)