Enum Class StringUtils.SplitMode

java.lang.Object
java.lang.Enum<StringUtils.SplitMode>
uk.blankaspect.common.string.StringUtils.SplitMode
All Implemented Interfaces:
Serializable, Comparable<StringUtils.SplitMode>, Constable
Enclosing class:
StringUtils

public static enum StringUtils.SplitMode extends Enum<StringUtils.SplitMode>
This is an enumeration of the ways in which an input string may be split by the split*(…) methods.
  • Enum Constant Details

    • NONE

      public static final StringUtils.SplitMode NONE
      The separator is discarded after splitting.
    • PREFIX

      public static final StringUtils.SplitMode PREFIX
      The separator is the last character of the prefix after splitting.
    • SUFFIX

      public static final StringUtils.SplitMode SUFFIX
      The separator is the first character of the suffix after splitting.
  • Method Details

    • values

      public static StringUtils.SplitMode[] 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 StringUtils.SplitMode 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