Class Util

java.lang.Object
de.siegmar.fastcsv.util.Util

public final class Util extends Object
Internal utility class.

It is not a part of the API!

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final char
    Carriage return.
    static final char
    Line feed.
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    containsDupe(char... chars)
    Checks if at least one of the passed arguments appear more than once.
    static boolean
    isNewline(char character)
    Checks if the given character is a newline character.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • containsDupe

      public static boolean containsDupe(char... chars)
      Checks if at least one of the passed arguments appear more than once.
      Parameters:
      chars - characters to check for uniqueness
      Returns:
      true if at least one of the passed arguments appear more than once
    • isNewline

      public static boolean isNewline(char character)
      Checks if the given character is a newline character.
      Parameters:
      character - character to test.
      Returns:
      true if the argument is '\r' or '\n'