polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Explicit types...
Date Thu, 20 Oct 2016 07:20:30 GMT
I think it is a good idea to abandon String for identity, and I am going to
change that across the board.
Since interfaces in Java 8 can have methods, I am adding

static Identity fromString( String s );

as a constructor of a generic, lightweight Identity instance.

I will also do similar things if I find more use of generic types in the
API, such as long for timestamps.

It will also mean that all such types are validated on creation.

Any objections?
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message