public CharSequence toDisplay() {
        List<String> segments = new ArrayList<>();
        if (open) {
            segments.add("Open issues");
        } else {
            segments.add("Closed issues");
        }

        if (assignee != null) {
            segments.add("Assignee: " + assignee.login());
        }

        if (milestone != null) {
            segments.add("Milestone: " + milestone.title());
        }

        if (labels != null && !labels.isEmpty()) {
            StringBuilder builder = new StringBuilder("Labels: ");
            for (Label label : labels) {
                builder.append(label.name()).append(',').append(' ');
            }
            builder.deleteCharAt(builder.length() - 1);
            builder.deleteCharAt(builder.length() - 1);
            segments.add(builder.toString());
        }

        if (segments.isEmpty()) {
            return "";
        }

        StringBuilder all = new StringBuilder();
        for (String segment : segments) {
            all.append(segment).append(',').append(' ');
        }
        all.deleteCharAt(all.length() - 1);
        all.deleteCharAt(all.length() - 1);
        return all;
    }
Get display {@link CharSequence} representing this filter

@return display
app/src/main/java/com/github/pockethub/android/core/issue/IssueFilter.java