Class Util


  • public final class Util
    extends java.lang.Object
    Internal utility class.

    It is not a part of the API!

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static char CR
      Carriage return.
      static char LF
      Line feed.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Util()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      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
    • Constructor Detail

      • Util

        private Util()
    • Method Detail

      • 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 13 or 10