Class OpencsvUtils


  • public final class OpencsvUtils
    extends java.lang.Object
    This class is meant to be a collection of general purpose static methods useful in processing mapping strategies.
    Since:
    3.9
    Author:
    Andrew Rucker Jones
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <E> void queueRefuseToAcceptDefeat​(java.util.concurrent.BlockingQueue<E> queue, E object)
      I find it annoying that when I want to queue something in a blocking queue, the thread might be interrupted and I have to try again; this method fixes that.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • queueRefuseToAcceptDefeat

        public static <E> void queueRefuseToAcceptDefeat​(java.util.concurrent.BlockingQueue<E> queue,
                                                         E object)
        I find it annoying that when I want to queue something in a blocking queue, the thread might be interrupted and I have to try again; this method fixes that.
        Type Parameters:
        E - The type of the object to be queued
        Parameters:
        queue - The queue the object should be added to
        object - The object to be queued
        Since:
        4.0