ensures that serialization returns the unique instances . concode_field_sep DialShape CHORD concode_elem_sep long serialVersionUID concode_elem_sep String name concode_elem_sep DialShape PIE concode_elem_sep DialShape CIRCLE concode_field_sep int hashCode concode_elem_sep boolean equals concode_elem_sep String toString
Object function ( ) { if ( this . equals ( DialShape . CIRCLE ) ) { return DialShape . CIRCLE ; } else if ( this . equals ( DialShape . CHORD ) ) { return DialShape . CHORD ; } else if ( this . equals ( DialShape . PIE ) ) { return DialShape . PIE ; } return null ; }