Function interface backport extracted to its own class
String serializer takes a function converting items to string in java