code: public static <T> List<T> toList( T... objects )
      {
          List<T> list = new ArrayList<T>( objects.length );
          for (T t : objects)
          {
              list.add( t );
          }
          return list;
      }
docs: <p>toList.</p>
  
  @param objects a T object.
  @param <T> a T object.
  @return a {@link java.util.List} object.