java.lang.Object
it.uniroma2.art.semanticturkey.converters.StringToDataSizeConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<String,DataSize>
public class StringToDataSizeConverter
extends Object
implements org.springframework.core.convert.converter.Converter<String,DataSize>
Constructs a
DataSize
object from its string serialization (e.g. 2 MiB)
- Author:
- Manuel Fiorelli
-
Constructor Summary
Constructors
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
StringToDataSizeConverter
public StringToDataSizeConverter()
-
Method Details
-
convert
- Specified by:
convert
in interface org.springframework.core.convert.converter.Converter<String,DataSize>