org.omnaest.utils.structure.element.filter
Class ElementFilterIndexPositionBasedForGivenIndexes
java.lang.Object
org.omnaest.utils.structure.element.filter.ElementFilterIndexPositionBasedForGivenIndexes
- All Implemented Interfaces:
- ExcludingElementFilterIndexPositionBased
public class ElementFilterIndexPositionBasedForGivenIndexes
- extends Object
- implements ExcludingElementFilterIndexPositionBased
ExcludingElementFilterIndexPositionBased which filters all elements which do not have any of the given index numbers
- Author:
- Omnaest
- See Also:
ElementFilter.FilterMode
|
Method Summary |
boolean |
filter(int indexPosition)
Returns true for all to be excluded elements with the given index position |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElementFilterIndexPositionBasedForGivenIndexes
public ElementFilterIndexPositionBasedForGivenIndexes(Collection<Integer> indexCollection,
ElementFilter.FilterMode mode)
- Parameters:
indexCollection - mode - - See Also:
ElementFilter.FilterMode
filter
public boolean filter(int indexPosition)
- Description copied from interface:
ExcludingElementFilterIndexPositionBased
- Returns true for all to be excluded elements with the given index position
- Specified by:
filter in interface ExcludingElementFilterIndexPositionBased
- Returns:
Copyright © 2013. All Rights Reserved.