org.omnaest.utils.structure.element.converter
Class ElementConverterStringToPattern

java.lang.Object
  extended by org.omnaest.utils.structure.element.converter.ElementConverterStringToPattern
All Implemented Interfaces:
Serializable, ElementConverter<String,Pattern>, ElementConverterSerializable<String,Pattern>

public class ElementConverterStringToPattern
extends Object
implements ElementConverterSerializable<String,Pattern>

ElementConverter for converting Strings into Patterns using Pattern.compile(String)

Author:
Omnaest
See Also:
Serialized Form

Constructor Summary
ElementConverterStringToPattern()
           
 
Method Summary
 Pattern convert(String element)
          Transforms a single element from one type into another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementConverterStringToPattern

public ElementConverterStringToPattern()
Method Detail

convert

public Pattern convert(String element)
Description copied from interface: ElementConverter
Transforms a single element from one type into another.

Specified by:
convert in interface ElementConverter<String,Pattern>
Returns:
converted element


Copyright © 2013. All Rights Reserved.