Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for EmptyIterator (0.05 sec)

  1. src/main/java/jcifs/EmptyIterator.java

     * This iterator contains no elements and immediately returns false for hasNext().
     *
     * @author mbechler
     */
    public class EmptyIterator implements CloseableIterator<SmbResource> {
    
        /**
         * Default constructor for EmptyIterator.
         * Creates an empty iterator with no elements.
         */
        public EmptyIterator() {
            // Default constructor
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/EmptyIteratorTest.java

    import org.junit.jupiter.api.Test;
    
    /**
     * Comprehensive test suite for EmptyIterator class.
     * Tests the implementation of CloseableIterator for empty collections.
     */
    @DisplayName("EmptyIterator Tests")
    class EmptyIteratorTest extends BaseTest {
    
        private EmptyIterator emptyIterator;
    
        @BeforeEach
        void setUp() {
            emptyIterator = new EmptyIterator();
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12K bytes
    - Viewed (0)
  3. compat/maven-compat/src/test/java/org/apache/maven/project/EmptyLifecycleBindingsInjector.java

        private static final LifecycleRegistry EMPTY_LIFECYCLE_REGISTRY = new LifecycleRegistry() {
    
            @Override
            public Iterator<Lifecycle> iterator() {
                return Collections.emptyIterator();
            }
    
            @Override
            public Optional<Lifecycle> lookup(String id) {
                return Optional.empty();
            }
    
            @Override
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Mar 21 04:56:21 UTC 2025
    - 5.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/FileEntryAdapterIteratorTest.java

            assertFalse(iterator.hasNext());
            assertNull(iterator.next());
    
            verify(resource, never()).close();
        }
    
        @Test
        @DisplayName("Empty iterator")
        void emptyIterator() {
            when(delegate.hasNext()).thenReturn(false);
    
            TestIterator iterator = new TestIterator(null);
    
            assertFalse(iterator.hasNext());
            assertNull(iterator.next());
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.6K bytes
    - Viewed (0)
Back to top