Class Functions.Identity

  • All Implemented Interfaces:
    Function<java.lang.Object,​java.lang.Object>
    Enclosing class:
    Functions

    static final class Functions.Identity
    extends java.lang.Object
    implements Function<java.lang.Object,​java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      Identity()  
    • Method Summary

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

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

      • Identity

        Identity()
    • Method Detail

      • apply

        public java.lang.Object apply​(java.lang.Object v)
        Description copied from interface: Function
        Apply some calculation to the input value and return some other value.
        Specified by:
        apply in interface Function<java.lang.Object,​java.lang.Object>
        Parameters:
        v - the input value
        Returns:
        the output value
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object