Class CollectionContains
- java.lang.Object
-
- uk.gov.gchq.koryphe.predicate.KoryphePredicate<Collection<?>>
-
- uk.gov.gchq.koryphe.impl.predicate.CollectionContains
-
- All Implemented Interfaces:
Predicate<Collection<?>>
public class CollectionContains extends KoryphePredicate<Collection<?>>
AnCollectionContains
is aPredicate
that checks if aCollection
contains a provided value. If the collection contains null values or is empty, then false will be returned.
-
-
Constructor Summary
Constructors Constructor Description CollectionContains()
CollectionContains(Object value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
Object
getValue()
int
hashCode()
void
setValue(Object value)
boolean
test(Collection<?> input)
String
toString()
-
-
-
Constructor Detail
-
CollectionContains
public CollectionContains()
-
CollectionContains
public CollectionContains(Object value)
-
-
Method Detail
-
getValue
public Object getValue()
-
setValue
public void setValue(Object value)
-
test
public boolean test(Collection<?> input)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classKoryphePredicate<Collection<?>>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classKoryphePredicate<Collection<?>>
-
-