Class VirtDataFunctions


  • public class VirtDataFunctions
    extends java.lang.Object
    • Method Summary

      Modifier and Type Method Description
      static <F> F adapt​(java.lang.Object func, java.lang.Class<F> type, java.lang.Class<?> output, boolean truncate)
      Adapt a functional object into a different type of functional object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VirtDataFunctions

        public VirtDataFunctions()
    • Method Detail

      • adapt

        public static <F> F adapt​(java.lang.Object func,
                                  java.lang.Class<F> type,
                                  java.lang.Class<?> output,
                                  boolean truncate)
        Adapt a functional object into a different type of functional object.
        Type Parameters:
        F - The type of function object needed.
        Parameters:
        func - The original function object.
        type - The type of function object needed.
        truncate - Whether to throw an exception on any narrowing conversion. If this is set to false, then basic roll-over logic is applied on narrowing conversions.
        Returns:
        An instance of F