Class OperationFactoryExt.ConvertAction

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Class<?> cls  
      private java.lang.reflect.Constructor<?> cons  
    • Constructor Summary

      Constructors 
      Constructor Description
      ConvertAction​(java.lang.Class<?> cls)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.lang.Object operate​(java.lang.Object value)
      Apply some function to a value and return the result.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • cls

        private java.lang.Class<?> cls
      • cons

        private java.lang.reflect.Constructor<?> cons
    • Constructor Detail

      • ConvertAction

        public ConvertAction​(java.lang.Class<?> cls)
    • Method Detail

      • operate

        public java.lang.Object operate​(java.lang.Object value)
        Description copied from interface: Operation
        Apply some function to a value and return the result.
        Specified by:
        operate in interface Operation
        Parameters:
        value - value to apply function to
        Returns:
        result of function
      • toString

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

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object