Skip to content

Commit 28748c7

Browse files
committed
Added Javadoc for EnumAdapter constructor
Documented the purpose and parameter of `EnumAdapter`’s constructor to improve code clarity and maintainability.
1 parent bc22928 commit 28748c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nbt/src/main/java/core/nbt/serialization/adapter/EnumAdapter.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@
1313
public final class EnumAdapter<T extends Enum<T>> implements TagAdapter<T> {
1414
private final Class<T> enumClass;
1515

16+
/**
17+
* Constructs an {@code EnumAdapter} for the provided enum class type.
18+
*
19+
* @param enumClass the {@code Class} representing the specific enum type handled by this adapter
20+
*/
1621
public EnumAdapter(Class<T> enumClass) {
1722
this.enumClass = enumClass;
1823
}

0 commit comments

Comments
 (0)