Class GuavaCollectors

java.lang.Object
de.hybris.platform.util.collections.GuavaCollectors

public final class GuavaCollectors extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>>
    Collect a stream of elements into an ImmutableList.
    static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>>
    Collect a stream of elements into an ImmutableSet.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • GuavaCollectors

      public GuavaCollectors()
  • Method Details

    • immutableList

      public static <T> Collector<T,com.google.common.collect.ImmutableList.Builder<T>,com.google.common.collect.ImmutableList<T>> immutableList()
      Collect a stream of elements into an ImmutableList.
    • immutableSet

      public static <T> Collector<T,com.google.common.collect.ImmutableSet.Builder<T>,com.google.common.collect.ImmutableSet<T>> immutableSet()
      Collect a stream of elements into an ImmutableSet.