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.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    containsDupe(char... chars)
    Checks if the given array of characters contains any duplicate characters.
    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

  • Constructor Details

    • Util

      private Util()
  • Method Details

    • containsDupe

      public static boolean containsDupe(char... chars)
      Checks if the given array of characters contains any duplicate characters.
      Parameters:
      chars - the array of characters to check for duplicates
      Returns:
      true if any character appears more than once in the array, false otherwise
    • 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'