java api with boolean, integer and string values