Class Formatter.Provided<T>

java.lang.Object
org.wildfly.clustering.marshalling.Formatter.Provided<T>
All Implemented Interfaces:
Formatter<T>
Enclosing interface:
Formatter<T>

public static class Formatter.Provided<T> extends Object implements Formatter<T>
  • Constructor Details

    • Provided

      public Provided(Formatter<T> formatter)
  • Method Details

    • getTargetClass

      public Class<T> getTargetClass()
      Description copied from interface: Formatter
      The implementation class of the target key of this format.
      Specified by:
      getTargetClass in interface Formatter<T>
      Returns:
      an implementation class
    • parse

      public T parse(String value)
      Description copied from interface: Formatter
      Parses the key from the specified string.
      Specified by:
      parse in interface Formatter<T>
      Parameters:
      value - a string representation of the key
      Returns:
      the parsed key
    • format

      public String format(T value)
      Description copied from interface: Formatter
      Formats the specified key to a string representation.
      Specified by:
      format in interface Formatter<T>
      Parameters:
      value - a key to format
      Returns:
      a string representation of the specified key.