Class Functions.CastToClass<T,​U>

  • All Implemented Interfaces:
    Function<T,​U>
    Enclosing class:
    Functions

    static final class Functions.CastToClass<T,​U>
    extends java.lang.Object
    implements Function<T,​U>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.lang.Class<U> clazz  
    • Constructor Summary

      Constructors 
      Constructor Description
      CastToClass​(java.lang.Class<U> clazz)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      U apply​(T t)
      Apply some calculation to the input value and return some other value.
      • Methods inherited from class java.lang.Object

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

      • clazz

        final java.lang.Class<U> clazz
    • Constructor Detail

      • CastToClass

        CastToClass​(java.lang.Class<U> clazz)
    • Method Detail

      • apply

        public U apply​(T t)
        Description copied from interface: Function
        Apply some calculation to the input value and return some other value.
        Specified by:
        apply in interface Function<T,​U>
        Parameters:
        t - the input value
        Returns:
        the output value