@Override
    @SuppressWarnings("unchecked")
    public MessagePattern cloneAsThawed() {
        MessagePattern newMsg;
        try {
            newMsg=(MessagePattern)super.clone();
        } catch (CloneNotSupportedException e) {
            throw new ICUCloneNotSupportedException(e);
        }
        newMsg.parts=(ArrayList<Part>)parts.clone();
        if(numericValues!=null) {
            newMsg.numericValues=(ArrayList<Double>)numericValues.clone();
        }
        newMsg.frozen=false;
        return newMsg;
    }
@ Override @ SuppressWarnings ( "unchecked" ) public MessagePattern cloneAsThawed ( ) { MessagePattern newMsg ; try { newMsg = ( MessagePattern ) super . clone ( ) ; } catch ( CloneNotSupportedException e ) { throw new ICUCloneNotSupportedException ( e ) ; } newMsg . parts = ( ArrayList < Part > ) parts . clone ( ) ; if ( numericValues != null ) { newMsg . numericValues = ( ArrayList < Double > ) numericValues . clone ( ) ; } newMsg . frozen = false ; return newMsg ; }
Creates and returns an unfrozen copy of this object.
@return a copy of this object.