Class NavigableMapTestSuiteBuilder.NavigableMapSubmapTestMapGenerator<K,​V>

    • Method Detail

      • order

        public java.lang.Iterable<java.util.Map.Entry<K,​V>> order​(java.util.List<java.util.Map.Entry<K,​V>> insertionOrder)
        Description copied from interface: TestContainerGenerator
        Returns the iteration ordering of elements, given the order in which they were added to the container. This method may return the original list unchanged, the original list modified in place, or a different list.

        If the order is non-deterministic, as with HashSet, this method can return its input unmodified. Provided that the test suite is built without CollectionFeature.KNOWN_ORDER, the tests will look only at the returned contents without regard for order.

        Specified by:
        order in interface TestContainerGenerator<K,​V>
      • createArray

        public java.util.Map.Entry<K,​V>[] createArray​(int length)
        Description copied from interface: TestContainerGenerator
        Helper method to create an array of the appropriate type used by this generator. The returned array will contain only nulls.
        Specified by:
        createArray in interface TestContainerGenerator<K,​V>