Interface Format<T>

All Known Subinterfaces:
PatternFormat<T>
All Known Implementing Classes:
AbstractNumberFormat, NumberPatternFormat

public interface Format<T>
Format allows to format object to and from string received using format or parse method
  • Method Summary

    Modifier and Type
    Method
    Description
    format(T object)
    Formats the object into a String
    parse(String string)
    Parses a String into an object
  • Method Details

    • format

      String format(T object) throws Exception
      Formats the object into a String
      Parameters:
      object - the object
      Returns:
      formatted as a String
      Throws:
      Exception - can be thrown
    • parse

      T parse(String string) throws Exception
      Parses a String into an object
      Parameters:
      string - the string
      Returns:
      T the object
      Throws:
      Exception - can be thrown