gets the value of the treatments property . this accessor method returns a reference to the live list , not a snapshot . therefore any modification you make to the returned list will be present inside the jaxb object . this is why there is not a set method for the treatments property . for example , to add a new item , do as follows : gettreatments . add newitem ; objects of the following type s are allowed in the list long concode_field_sep long patientId concode_elem_sep Date dob concode_elem_sep String name concode_elem_sep long id concode_elem_sep int age concode_elem_sep List<Long> treatments concode_field_sep void setName concode_elem_sep int getAge concode_elem_sep String getName concode_elem_sep void setDob concode_elem_sep long getPatientId concode_elem_sep void setPatientId concode_elem_sep void setId concode_elem_sep Date getDob concode_elem_sep long getId concode_elem_sep void setAge
List < Long > function ( ) { if ( treatments == null ) { treatments = new ArrayList < Long > ( ) ; } return this . treatments ; }