Class CamelCaseCoder

java.lang.Object
pl.put.poznan.jsontools.logic.casings.CamelCaseCoder
All Implemented Interfaces:
CaseCoder

public class CamelCaseCoder extends Object implements CaseCoder
  • Constructor Details

    • CamelCaseCoder

      public CamelCaseCoder()
  • Method Details

    • decode

      public String[] decode(String text)
      Description copied from interface: CaseCoder
      Splits the input text into words
      Specified by:
      decode in interface CaseCoder
      Parameters:
      text - The input text
      Returns:
      An array of individual words
    • encode

      public String encode(String[] words)
      Description copied from interface: CaseCoder
      Combines the array of words into a single string
      Specified by:
      encode in interface CaseCoder
      Parameters:
      words - The input array of words
      Returns:
      A string combining the input words