Package com.intellij.util

Examples of com.intellij.util.Function$Self


  public static String toString(Object[] collection, String separator) {
    return toString(Arrays.asList(collection), separator);
  }

  public static String toString(Collection collection, String separator) {
    List<String> list = ContainerUtil.map2List(collection, new Function() {
      public Object fun(final Object o) {
        return String.valueOf(o);
      }
    });
    Collections.sort(list);
View Full Code Here


          final List<Pair<String, Icon>> all = ContainerUtil.map(variants, new Function<Object, Pair<String, Icon>>() {
            public Pair<String, Icon> fun(final Object s) {
              return Pair.create(ElementPresentationManager.getElementName(s), ElementPresentationManager.getIcon(s));
            }
          });
          all.addAll(ContainerUtil.map(resolvingConverter.getAdditionalVariants(context), new Function() {
            public Object fun(final Object s) {
              return new Pair(s, null);
            }
          }));
          return all;
View Full Code Here

TOP

Related Classes of com.intellij.util.Function$Self

Copyright © 2018 www.massapicom. 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.