Package lombok

Examples of lombok.val.addAll()


  public LongEntry<V>[] entries()
  {
    val result = new ReifiedArrayList<LongEntry<V>>(size, LongEntry.class);
    for (int i = 0; i < table.length; i++)
      if (table[i] != null)
        result.addAll(table[i].entries);

    return result.toArray();
  }

  /**
 
View Full Code Here


      }
    }

    val result = new ReifiedArrayList<TResult>(DEFAULT_LIST_SIZE, keySelector.getParameterType1());
    for (List<TResult> list : dict.values())
      result.addAll(list);

    return result;
  }

  /**
 
View Full Code Here

      }
    }

    val result = new ReifiedArrayList<TResult>(DEFAULT_LIST_SIZE, keySelector.getParameterType1());
    for (List<TResult> list : dict.values())
      result.addAll(list);

    return result.toArray();
  }

  /**
 
View Full Code Here

    // get all lists and combine into one resultant list
    val result = new ReifiedArrayList<TResult>(DEFAULT_LIST_SIZE, keySelector2.getReturnType());
    // get all secondary dictionaries
    for (TreeMap<TKey2, List<TResult>> tree : dict.values())
      for (List<TResult> list : tree.values())
        result.addAll(list);

    return result;
  }

  /**
 
View Full Code Here

    // get all lists and combine into one resultant list
    val result = new ReifiedArrayList<TResult>(DEFAULT_LIST_SIZE, keySelector2.getReturnType());
    // get all secondary dictionaries
    for (TreeMap<TKey2, List<TResult>> tree : dict.values())
      for (List<TResult> list : tree.values())
        result.addAll(list);

    return result.toArray();
  }

  /**
 
View Full Code Here

  {
    val result = new ArrayList<T>(16);

    // get derived class annotations
    List<Annotation> annotations = ArrayUtils.toList(annotatedClass.getDeclaredAnnotations());
    result.addAll(Linq.toList(Linq.ofType(annotations, annotationType)));

    if (includeInherited)
    {
      // get all annotations from base classes and implemented interfaces
      Class<?> superClass = annotatedClass;
View Full Code Here

      while ((superClass = superClass.getSuperclass()) != null)
      {
        // get super class annotations
        annotations = ArrayUtils.toList(superClass.getDeclaredAnnotations());
        result.addAll(Linq.toList(Linq.ofType(annotations, annotationType)));
      }

      // now get all the superinterfaces' annotations
      for (val iface : annotatedClass.getInterfaces())
      {
View Full Code Here

      // now get all the superinterfaces' annotations
      for (val iface : annotatedClass.getInterfaces())
      {
        annotations = ArrayUtils.toList(iface.getDeclaredAnnotations());
        result.addAll(Linq.toList(Linq.ofType(annotations, annotationType)));
      }
    }

    return result;
  }
View Full Code Here

  public static List<Annotation> getAnnotations(@NotNull final Class<?> annotatedClass, boolean includeInherited)
  {
    val result = new ArrayList<Annotation>(16);

    // get derived class annotations
    result.addAll(ArrayUtils.toList(annotatedClass.getDeclaredAnnotations()));

    if (includeInherited)
    {
      // get all annotations from base classes and implemented interfaces
      Class<?> superClass = annotatedClass;
View Full Code Here

      // get all annotations from base classes and implemented interfaces
      Class<?> superClass = annotatedClass;

      while ((superClass = superClass.getSuperclass()) != null)
        // get super class annotations
        result.addAll(ArrayUtils.toList(superClass.getDeclaredAnnotations()));

      // now get all the superinterfaces' annotations
      for (val iface : annotatedClass.getInterfaces())
        result.addAll(ArrayUtils.toList(iface.getDeclaredAnnotations()));
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.