You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[This Issue parallels one posted for Vaadin 8 Framework, Issue # 11,051.]
Vaadin 8 Framework offers several handy implementations of Converter such as StringToBooleanConverter and StringToIntegerConverter.
I suggest adding another for the common type java.util.UUID for Universally unique identifier (UUID) values. UUID values are common in enterprise apps for generating identifiers without needing a central registration authority.
The 128 bits of a UUID are canonically presented as five groups of hexadecimal digits separated by a hyphen, such as ab664df2-8859-11e8-9a94-a6cf71072f73, as discussed in Wikipedia, the java.util.UUID::toString JavaDoc, and the RFC 4122 spec.
The implementation is utterly simple, with only two core lines of code:
String s = myUuid.toString() ;
and
UUID myUuid = UUID.fromString( s ) ;
Attached is a single StringToUuidConverter.java.txt file, my take on an implementation. (GitHub would not accept .java, so I appended .txt to the file name.)
[This Issue parallels one posted for Vaadin 8 Framework, Issue # 11,051.]
Vaadin 8 Framework offers several handy implementations of
Converter
such asStringToBooleanConverter
andStringToIntegerConverter
.I suggest adding another for the common type
java.util.UUID
for Universally unique identifier (UUID) values. UUID values are common in enterprise apps for generating identifiers without needing a central registration authority.The 128 bits of a UUID are canonically presented as five groups of hexadecimal digits separated by a hyphen, such as
ab664df2-8859-11e8-9a94-a6cf71072f73
, as discussed in Wikipedia, thejava.util.UUID::toString
JavaDoc, and the RFC 4122 spec.The implementation is utterly simple, with only two core lines of code:
and
Attached is a single StringToUuidConverter.java.txt file, my take on an implementation. (GitHub would not accept .java, so I appended .txt to the file name.)
StringToUuidConverter.java.txt
The text was updated successfully, but these errors were encountered: