Class ToListConsumer<T>

  • All Implemented Interfaces:
    java.util.function.Consumer<T>

    public class ToListConsumer<T>
    extends java.lang.Object
    implements java.util.function.Consumer<T>
    Since:
    06.04.2015
    Author:
    operehod
    • Constructor Summary

      Constructors 
      Constructor Description
      ToListConsumer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void accept​(T t)  
      void clear()  
      int size()  
      java.util.List<T> toList()  
      java.util.Set<T> toSet()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Consumer

        andThen
    • Constructor Detail

      • ToListConsumer

        public ToListConsumer()
    • Method Detail

      • accept

        public void accept​(T t)
        Specified by:
        accept in interface java.util.function.Consumer<T>
      • toList

        public java.util.List<T> toList()
      • size

        public int size()
      • toSet

        public java.util.Set<T> toSet()
      • clear

        public void clear()