private static < T > List < T > unmodifiableList ( List < T > list ) { if ( list == null ) { return Collections . emptyList ( ) ; } return Collections . unmodifiableList ( list ) ; }
Gets an unmodifiable list from the given list .