Class SynchronizedListAccumulator<T>

  • All Implemented Interfaces:
    Accumulator<T>, java.lang.Iterable<T>

    public class SynchronizedListAccumulator<T>
    extends java.lang.Object
    implements Accumulator<T>
    • Constructor Detail

      • SynchronizedListAccumulator

        public SynchronizedListAccumulator()
      • SynchronizedListAccumulator

        public SynchronizedListAccumulator​(java.util.List<T> list)
    • Method Detail

      • add

        public void add​(T t)
        Specified by:
        add in interface Accumulator<T>
      • addAll

        public void addAll​(java.util.Collection<T> collection)
        Specified by:
        addAll in interface Accumulator<T>
      • get

        public java.util.Collection<T> get()
        Specified by:
        get in interface Accumulator<T>
      • asList

        public java.util.List<T> asList()
      • iterator

        public java.util.Iterator<T> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<T>
      • toString

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