Class Conversions

java.lang.Object
de.haumacher.msgbuf.util.Conversions

public class Conversions extends Object
Utilities for value conversions.
  • Constructor Details

    • Conversions

      public Conversions()
  • Method Details

    • asList

      public static <T> List<? extends T> asList(Class<T> type, Object value)
      Checked conversion to a typed list.
      Type Parameters:
      T - The element type of the list.
      Parameters:
      type - The dynamic element type of the list.
      value - The generic value.
      Returns:
      The typed list value.