Class Options

java.lang.Object
com.github.sttk.stringcase.Options

public class Options extends Object
Is a class that represents options which specifies the ways of case conversion of strings.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final String
    Specifies the set of characters not to be treated as word separators and kept in the result string.
    final boolean
    Specifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary.
    final boolean
    Specifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary.
    final String
    Specifies the set of characters to be treated as word separators and removed from the result string.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Options(boolean separateBeforeNonAlphabets, boolean separateAfterNonAlphabets, String separators, String keep)
    The constructor which takes the arguments that specifies the ways of case conversion.
  • Method Summary

    Methods inherited from class java.lang.Object

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

    • separateBeforeNonAlphabets

      public final boolean separateBeforeNonAlphabets
      Specifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary.
    • separateAfterNonAlphabets

      public final boolean separateAfterNonAlphabets
      Specifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary.
    • separators

      public final String separators
      Specifies the set of characters to be treated as word separators and removed from the result string.
    • keep

      public final String keep
      Specifies the set of characters not to be treated as word separators and kept in the result string.
  • Constructor Details

    • Options

      public Options(boolean separateBeforeNonAlphabets, boolean separateAfterNonAlphabets, String separators, String keep)
      The constructor which takes the arguments that specifies the ways of case conversion.
      Parameters:
      separateBeforeNonAlphabets - The flag that specifies whether to treat the beginning of a sequence of non-alphabetical characters as a word boundary.
      separateAfterNonAlphabets - The flag that specifies whether to treat the end of a sequence of non-alphabetical characters as a word boundary.
      separators - The symbol characters to be treated as word separators and removed from the result string.
      keep - The symbol characters to be treated as word separators and kept in the result string.