Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 234 for Supplier (0.06 sec)

  1. android/guava/src/com/google/common/util/concurrent/LazyLogger.java

      }
    
      Logger get() {
        /*
         * We use double-checked locking. We could the try racy single-check idiom, but that would
         * depend on Logger to not contain mutable state.
         *
         * We could use Suppliers.memoizingSupplier here, but I micro-optimized to this implementation
         * to avoid the extra class for the lambda (and maybe more for memoizingSupplier itself) and the
         * indirection.
         *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb1/smb1/AllocInfoTest.java

     */
    @ExtendWith(MockitoExtension.class)
    public class AllocInfoTest {
    
        @Mock
        AllocInfo mockAllocInfo;
    
        /**
         * Happy path – verifies that getters return the values supplied by the
         * implementation.
         */
        @Test
        @DisplayName("verify getters return stubbed values")
        void testGettersHappyPath() {
            when(mockAllocInfo.getCapacity()).thenReturn(1000L);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

      @Override
      public String[] createArray(int length) {
        return new String[length];
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>By default, returns the supplied elements in their given order; however, generators for
       * containers with a known order other than insertion order must override this method.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/ThreadFactoryBuilder.java

       * threadBuilder.name("rpc-pool-", 0)}.
       *
       * @param nameFormat a {@link String#format(String, Object...)}-compatible format String, to which
       *     a unique integer (0, 1, etc.) will be supplied as the single parameter. This integer will
       *     be unique to the built instance of the ThreadFactory and will be assigned sequentially. For
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:35:26 UTC 2025
    - 9K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

      @Override
      public Integer[] createArray(int length) {
        return new Integer[length];
      }
    
      /**
       * {@inheritDoc}
       *
       * <p>By default, returns the supplied elements in their given order; however, generators for
       * containers with a known order other than insertion order must override this method.
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

        return "zero";
      }
    
      @Override
      protected Collection<Integer> getValueNotInPopulatedMap() throws UnsupportedOperationException {
        return Lists.newArrayList(0);
      }
    
      /**
       * The version of this test supplied by {@link MapInterfaceTest} fails for this particular Map
       * implementation, because {@code map.get()} returns a view collection that changes in the course
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 14:47:20 UTC 2025
    - 3K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/toolchain/java/JavaToolchainFactory.java

            return jtc;
        }
    
        @Override
        public ToolchainPrivate createDefaultToolchain() {
            // not sure it's necessary to provide a default toolchain here.
            // only version can be eventually supplied.
            return null;
        }
    
        protected Logger getLogger() {
            return logger;
        }
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Objects.java

       *
       * {@snippet :
       * public int hashCode() {
       *   return Objects.hashCode(getX(), getY(), getZ());
       * }
       * }
       *
       * <p><b>Warning:</b> When a single object is supplied, the returned hash code does not equal the
       * hash code of that object.
       *
       * <p><b>Note:</b> this method is now unnecessary and should be treated as deprecated; use {@link
       * java.util.Objects#hash} instead.
       */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 28 22:51:26 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/MultiInputStream.java

    final class MultiInputStream extends InputStream {
    
      private final Iterator<? extends ByteSource> it;
      private @Nullable InputStream in;
    
      /**
       * Creates a new instance.
       *
       * @param it an iterator of I/O suppliers that will provide each substream
       */
      public MultiInputStream(Iterator<? extends ByteSource> it) throws IOException {
        this.it = checkNotNull(it);
        advance();
      }
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed May 14 19:40:47 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/com/SmbComQueryInformationTest.java

            String str = cmd.toString();
            assertTrue(str.startsWith("SmbComQueryInformation"), "String representation must start with class name");
            assertTrue(str.contains("filename=testfile.txt"), "toString must contain the supplied filename");
        }
    
        @Test
        @DisplayName("writeBytesWireFormat with null path returns minimal bytes")
        void testWriteWhenPathIsNull() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top