Class Combiner


  • public class Combiner
    extends java.lang.Object
    Utility class for combining Combinable objects.
    • Constructor Summary

      Constructors 
      Constructor Description
      Combiner()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static <T extends Combinable<T>>
      int
      combine​(T[] objects)
      Combine an array of Combinable objects.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Combiner

        public Combiner()
    • Method Detail

      • combine

        public static <T extends Combinable<T>> int combine​(T[] objects)
        Combine an array of Combinable objects.
        Type Parameters:
        T - common combinable type of objects
        Parameters:
        objects - The objects to combine. This array will contain the combined objects on return.
        Returns:
        the number of objects in the input array objects that are valid after return