CustomTaskState function ( @ NotNull TaskState arg0 ) { final CustomTaskState loc0 = new CustomTaskState ( arg0 . name ( ) , arg0 . getPresentableName ( ) ) ; loc0 . setPredefined ( true ) ; return loc0 ; }
creates custom state for which id is identical to taskstate #name of the given predefined state and #ispredefined returns true . if your repository provides only fixed set of available states , that are one of those described in taskstate , you may find this methods useful to implement taskrepository #getavailabletaskstates task . concode_field_sep String myId concode_elem_sep String myPresentableName concode_elem_sep boolean myPredefined concode_field_sep boolean isPredefined concode_elem_sep int hashCode concode_elem_sep void setPredefined concode_elem_sep void setPresentableName concode_elem_sep boolean equals concode_elem_sep String getPresentableName concode_elem_sep void setId concode_elem_sep String getId concode_elem_sep String toString concode_elem_sep TaskState asPredefined