Class SvnReceivingOperation<T>

    • Constructor Detail

    • Method Detail

      • setReceiver

        public void setReceiver​(ISvnObjectReceiver<T> receiver)
        Sets client's object receiver.
        Parameters:
        receiver - object receiver
      • getReceiver

        public ISvnObjectReceiver<T> getReceiver()
        Returns client's object receiver.
        Returns:
        object receiver
      • receive

        public void receive​(SvnTarget target,
                            T object)
                     throws SVNException
        Receives the object, adds it to objects list and calls client's receiver if exists.
        Specified by:
        receive in interface ISvnObjectReceiver<T>
        Parameters:
        target - target of the object
        object - object
        Throws:
        SVNException
      • first

        public T first()
        Returns first received object from the list.
        Returns:
        first received object
      • last

        public T last()
        Returns last received object from the list.
        Returns:
        first received object
      • run

        public java.util.Collection<T> run​(java.util.Collection<T> objects)
                                    throws SVNException
        Initializes list for received objects with objects or creates an empty list, calls the operation's SvnOperation.run() method.
        Parameters:
        objects -
        Returns:
        list of received objects
        Throws:
        SVNException