Code example for ImmutableMap.Builder

0
                builder.put("Character", s); //$NON-NLS-1$ 
            } catch (UnsupportedEncodingException e) { 
                // Do nothing. The string won't be added to the map anyway. 
            } 
            @SuppressWarnings("null") 
            @NonNull ImmutableMap<String, String> newMap = builder.build(); 
            fFields = newMap; 
            return newMap; 
        } 
        return map; 
    } 
 
    @Override 
    public String getLocalSummaryString() { 
        return "Len: " + fPayload.array().length + " bytes"; //$NON-NLS-1$ //$NON-NLS-2$ 
    } 
 
    @Override 
    protected String getSignificationString() { 
        return "Data: " + fPayload.array().length + " bytes"; //$NON-NLS-1$ //$NON-NLS-2$