Class BasicReceiver<T>

    • Constructor Detail

      • BasicReceiver

        public BasicReceiver()
    • Method Detail

      • add

        public void add(Receiver<T> receiver,
                        boolean addExistingElements)
        Bind another Receiver to this object, so when elements are added to this receiver, the argument receives those elements too.
        Parameters:
        receiver - the new receiver.
        addExistingElements - whether the new receiver should receive a copy of all existing elements.
      • toArray

        public T[] toArray(T[] array)
      • add

        public void add(T... elements)
        Description copied from interface: Receiver
        Add elements to this receiver.
        Specified by:
        add in interface  Receiver<T>
        Parameters:
        elements - the elements to add to this receiver.
      • getSize

        public int getSize()
      • getElementAt

        public T getElementAt(int index)
      • addListDataListener

        public void addListDataListener(ListDataListener l)
        Add a ListDataListener. This will only be issued INTERVAL_ADDED events, because a Receiver object only supports add operations.
      • removeListDataListener

        public void removeListDataListener(ListDataListener l)