Class MultipartInputProcessor

java.lang.Object
fr.metabocloud.core.implementation.utils.MultipartInputProcessor

public class MultipartInputProcessor extends Object
Utility class with methods to help processing multipart input sent in a request body.
  • Constructor Details

    • MultipartInputProcessor

      protected MultipartInputProcessor()
      Protected constructor
  • Method Details

    • findFirstIndexNonNull

      public static Integer findFirstIndexNonNull(List<Object> inputList) throws NoSuchElementException
      Give the index of the first non-null element of an object list.
      Parameters:
      inputList - A list of input
      Returns:
      The index of the first non-null object of the list.
      Throws:
      NoSuchElementException - if there is no null object in the list.