Class IdentityUtils.DistinctFilter<E>
- java.lang.Object
-
- com.hybris.cockpitng.core.util.impl.IdentityUtils.DistinctFilter<E>
-
- Type Parameters:
E- type of elements to filter
- All Implemented Interfaces:
java.util.function.Predicate<E>
- Enclosing class:
- IdentityUtils
public static class IdentityUtils.DistinctFilter<E> extends java.lang.Object implements java.util.function.Predicate<E>Filter that returns true only for the first time specified element is tested. It may be used inStream.filter(Predicate)to get a distinct stream in context of instance.
-
-
Constructor Summary
Constructors Constructor Description DistinctFilter()DistinctFilter(int maxSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleantest(E e)
-