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 extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
      • createKeyArray

        public K[] createKeyArray​(int length)
        Specified by:
        createKeyArray in interface TestMapGenerator<K extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
      • createValueArray

        public V[] createValueArray​(int length)
        Specified by:
        createValueArray in interface TestMapGenerator<K extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
      • samples

        public SampleElements<java.util.Map.Entry<K,​V>> samples()
        Description copied from interface: TestContainerGenerator
        Returns the sample elements that this generate populates its container with.
        Specified by:
        samples in interface TestContainerGenerator<K extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>
      • 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 extends @Nullable java.lang.Object,​V extends @Nullable java.lang.Object>