Class TransferObject<T>

    • Constructor Detail

      • TransferObject

        public TransferObject​(T objectToCopy,
                              Form sourceForm)
        The constructor.
        Parameters:
        objectToCopy - object to copy, cannot be null
        sourceForm - form source, cannot be null
    • Method Detail

      • getObject

        public T getObject()
        Returns object to copy.
        Returns:
        object to copy, never null
      • getSourceForm

        public Form getSourceForm()
        Returns source form.
        Returns:
        source form, never null
      • isObjectOfType

        public boolean isObjectOfType​(Class<?> klass)
        Checks class for object to copy.
        Parameters:
        klass - some class, cannot be null
        Returns:
        true if the object to copy is instance of the given class