Package io.github.amanzat.util
Class ObjectUtils
java.lang.Object
io.github.amanzat.util.ObjectUtils
Miscellaneous
Object utility methods.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TuncheckedCast(Object value) Performs an unchecked cast for the specified object.
-
Constructor Details
-
ObjectUtils
public ObjectUtils()
-
-
Method Details
-
uncheckedCast
Performs an unchecked cast for the specified object.- Type Parameters:
T- The expected type.- Parameters:
value- The object- Returns:
- The object cast to the expected type.
- Throws:
ClassCastException- if the object can't be cast
-