Class CollectionUtil.RuptureContext<T>

    • Method Detail

      • newOne

        public static <T> CollectionUtil.RuptureContext<T> newOne​(List<T> orderedList)
        Initializes a new context with the given ordered list.
        Type Parameters:
        T - the type of the items in the list
        Parameters:
        orderedList - an ordered list.
        Returns:
        the initialized context.
      • isTerminated

        public boolean isTerminated()
        Indicates if the rupture is terminated.
        Returns:
        true if terminated, false otherwise.
      • reset

        public void reset()
        Resets the rupture as the caller was initializing a new one with newOne(List).