FluentIterable toArray - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for FluentIterable toArray method.

This code example shows how to use the following methods:toArray
   * @since 18.0 
   */ 
  // @Override on JDK8 
  public <A extends Annotation> A[]
      getDeclaredAnnotationsByType(Class<A> annotationType) {
    return FluentIterable.from(annotations)
        .filter(annotationType)
        .toArray(annotationType);
  } 
 
  @Override public boolean equals(@Nullable Object obj) {
    if (obj instanceof Parameter) {
      Parameter that = (Parameter) obj;
      return position == that.position && declaration.equals(that.declaration);
    } 
    return false; 
  } 
 
  @Override public int hashCode() { 
    return position;
4
CodeRank
This code example shows how to use the following methods:toArray
 
  public int perform(SQLiteDatabase db) {
    return db.delete(
        mTable,
        Joiner.on(" AND ").join(mSelections),
        FluentIterable.from(mSelectionArgs).transform(Functions.toStringFunction()).toArray(String.class)
    ); 
  } 
 
  @Override 
  public Delete from(String table) {
    mTable = checkNotNull(table);
    return this;
  } 
 
  public Delete where(String selection, Object... selectionArgs) {
    if (selection != null) {
      mSelections.add("(" + selection + ")");
      if (selectionArgs != null) { 
        mSelectionArgs.addAll(Arrays.asList(selectionArgs));
4
CodeRank
This code example shows how to use the following methods:toArray
	 * @param type 
	 * @return 
	 * @see com.google.common.collect.FluentIterable#toArray(java.lang.Class) 
	 */ 
	public final O[] toArray(Class<O> type) {
		return source.toArray(type);
	} 
 
	/** 
	 * @param collection 
	 * @return 
	 * @see com.google.common.collect.FluentIterable#copyInto(java.util.Collection) 
	 */ 
	public final <C extends Collection<? super O>> C copyInto(C collection) {
		return source.copyInto(collection);
	} 
 
	/** 
	 * @return 
	 * @see com.google.common.collect.FluentIterable#size() 
3
CodeRank
toArray Method Overview
Returns an array containing all of the elements from this fluent iterable in iteration order.
See Code Examples for other Guava FluentIterable Methods: