static < E > ImmutableList < E > asImmutableList ( Object [ ] elements , int length ) { if ( length == 0 ) { return of ( ) ; } return new RegularImmutableList < E > ( elements , length ) ; }
Views the array as an immutable list . Does not check for nulls .