@ SuppressWarnings ( "unchecked" ) // The constructor guarantees the type of ImmutableList. private SoyMsg resurrectMsg ( long id , ImmutableList < SoyMsgPart > parts ) { return SoyMsg . builder ( ) . setId ( id ) . setLocaleString ( localeString ) . setIsPlrselMsg ( MsgPartUtils . hasPlrselPart ( parts ) ) . setParts ( parts ) . build ( ) ; }
Brings a message back to life from only its ID and parts .