Code example for LinkedHashMap

Methods: HashMap.put, isEmpty

0
        this.activity = activity;
        return createLayout(); 
    } 
 
    public View createLayout() {
        LinkedHashMap<String, String> content = new LinkedHashMap();
        if (Utils.isNotBlank(identity.getAboutMe())) { 
            content.put("Note:", identity.getAboutMe());
        } 
        if (Utils.isNotBlank(identity.getBirthDay())) { 
            content.put("Birth Day:", identity.getBirthDay());
        } 
        if (Utils.isNotBlank(identity.getRelationshipStatus())) { 
            content.put("RelationShips:", identity.getRelationshipStatus());
        } 
        if (Utils.isNotBlank(identity.getInterests())) { 
            content.put("Interests:", identity.getInterests());
        } 
        if (Utils.isNotBlank(identity.getActivities())) { 
            content.put("Activities:", identity.getActivities());
        } 
        if (content.isEmpty()) {
            return addEmpryMessage("No status updates"); 
        }  
        return createNotations(content);
    }