Class WorkList<T>


  • public class WorkList<T>
    extends java.lang.Object
    Deprecated.
    Feel free to copy. Since 2.5.0.
    Appends an entry to the work list. param: ref The entry.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  WorkList.Entry<T>
      Deprecated.
      Singly linked list entry implementation for WorkList.
    • Constructor Summary

      Constructors 
      Constructor Description
      WorkList()
      Deprecated.
       
    • Constructor Detail

      • WorkList

        public WorkList()
        Deprecated.
    • Method Detail

      • empty

        public static <T> WorkList<T> empty()
        Deprecated.
      • add

        public WorkList<T> add​(T ref,
                               boolean permanent)
        Deprecated.
        Appends an entry to the work list.
        Parameters:
        ref - The entry.
        permanent - (undocumented)
        Returns:
        The updated work list.
      • remove

        public boolean remove​(T ref)
        Deprecated.
        Removes an entry from the work list
        Parameters:
        ref - The entry.
        Returns:
        True if the entry is removed, false if the entry is not found.
      • process

        public boolean process​(scala.Function1<T,​java.lang.Object> processFn)
        Deprecated.
        Tries to process each entry using the processing function. Stops at the first entry processing succeeds. If the entry is not permanent, the entry is removed.
        Parameters:
        processFn - The processing function, returns true if processing succeeds.
        Returns:
        true if an entry has been processed, false if no entries are processed successfully.
      • addAll

        public WorkList<T> addAll​(WorkList<T> other)
        Deprecated.
        Appends another WorkList to this WorkList.
        Parameters:
        other - The other WorkList
        Returns:
        This WorkList
      • removeAll

        public boolean removeAll()
        Deprecated.
        Removes all entries from this WorkList
        Returns:
        True if at least one entry is removed. False if none is removed.