Class ObjectUtils

java.lang.Object
io.github.amanzat.util.ObjectUtils

public final class ObjectUtils extends Object
Miscellaneous Object utility methods.
  • Constructor Details

    • ObjectUtils

      public ObjectUtils()
  • Method Details

    • uncheckedCast

      public static <T> T uncheckedCast(Object value)
      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