Class BoundedMaxAggregator

  • All Implemented Interfaces:
    java.util.function.BiFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>

    public class BoundedMaxAggregator
    extends java.lang.Object
    implements java.util.function.BiFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      int maxBound  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Integer apply​(java.lang.Integer aggregate, java.lang.Integer next)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.BiFunction

        andThen
    • Field Detail

      • maxBound

        public final int maxBound
    • Constructor Detail

      • BoundedMaxAggregator

        public BoundedMaxAggregator​(int maxBound)
    • Method Detail

      • apply

        public java.lang.Integer apply​(@Nullable
                                       java.lang.Integer aggregate,
                                       @Nullable
                                       java.lang.Integer next)
        Specified by:
        apply in interface java.util.function.BiFunction<java.lang.Integer,​java.lang.Integer,​java.lang.Integer>