public < E > List < E > unmodifiable ( List < E > input ) { if ( input == null ) { return null ; } return Collections . unmodifiableList ( input ) ; }
Returns an unmodifiable view of the specified list .