Enum Class Trimming

java.lang.Object
java.lang.Enum<Trimming>
xmlparser.utils.Trimming
All Implemented Interfaces:
Serializable, Comparable<Trimming>, Constable

public enum Trimming extends Enum<Trimming>
  • Field Details

    • WHITESPACE_CHARS

      public static Map<String,Character> WHITESPACE_CHARS
    • ALL_WHITESPACE_CHARACTERS

      public static final Set<Character> ALL_WHITESPACE_CHARACTERS
  • Method Details

    • values

      public static Trimming[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Trimming valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isLenientWhitespace

      public static boolean isLenientWhitespace(char c)
    • isXmlWhitespace

      public static boolean isXmlWhitespace(char c)
    • trim

      public static String trim(String value, Function<Character,Boolean> isWhitespace)