Class FreqMapPredicator
-
- All Implemented Interfaces:
Serializable
,Function<FreqMap,FreqMap>
public class FreqMapPredicator extends uk.gov.gchq.koryphe.function.KorypheFunction<FreqMap,FreqMap> implements Serializable
AFreqMapPredicator
is aKorypheFunction
that extracts a a clone of the current frequency map provided a validKoryphePredicate
.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FreqMapPredicator()
Constructor for FreqMapPredicator.
As an empty constructor, null is defaulted for the predicate.
If null supplied as predicate thenapply(FreqMap)
will yield a clone of the input map.FreqMapPredicator(uk.gov.gchq.koryphe.predicate.KoryphePredicate<String> predicate)
Constructor for FreqMapPredicator.
If null supplied as predicate thenapply(FreqMap)
will yield a clone of the input map.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreqMap
apply(FreqMap freqMap)
uk.gov.gchq.koryphe.predicate.KoryphePredicate<String>
getPredicate()
void
setPredicate(uk.gov.gchq.koryphe.predicate.KoryphePredicate<String> predicate)
-
-
-
Constructor Detail
-
FreqMapPredicator
public FreqMapPredicator()
Constructor for FreqMapPredicator.
As an empty constructor, null is defaulted for the predicate.
If null supplied as predicate thenapply(FreqMap)
will yield a clone of the input map.
-
FreqMapPredicator
public FreqMapPredicator(uk.gov.gchq.koryphe.predicate.KoryphePredicate<String> predicate)
Constructor for FreqMapPredicator.
If null supplied as predicate thenapply(FreqMap)
will yield a clone of the input map.- Parameters:
predicate
- The predicate for keys.
-
-