Wrapper Types for piping mechanisms in Java