@Exported
    public Collection<View> getViews() {
        List<View> orig = views();
        List<View> copy = new ArrayList<>(orig.size());
        for (View v : orig) {
            if (v.hasPermission(View.READ))
                copy.add(v);
        }
        copy.sort(View.SORTER);
        return copy;
    }
@ Exported public Collection < View > getViews ( ) { List < View > orig = views ( ) ; List < View > copy = new ArrayList < > ( orig . size ( ) ) ; for ( View v : orig ) { if ( v . hasPermission ( View . READ ) ) copy . add ( v ) ; } copy . sort ( View . SORTER ) ; return copy ; }
Gets the read-only list of all {@link View}s.