Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 900 for init (0.14 sec)

  1. android/guava-tests/test/com/google/common/graph/AbstractGraphTest.java

        assertThat(graphString).contains("isDirected: " + graph.isDirected());
        assertThat(graphString).contains("allowsSelfLoops: " + graph.allowsSelfLoops());
    
        int nodeStart = graphString.indexOf("nodes:");
        int edgeStart = graphString.indexOf("edges:");
        String nodeString = graphString.substring(nodeStart, edgeStart);
    
        Set<EndpointPair<N>> allEndpointPairs = new HashSet<>();
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jan 22 17:29:38 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactHashMap.java

          return delegate.put(key, value);
        }
        int[] entries = requireEntries();
        @Nullable Object[] keys = requireKeys();
        @Nullable Object[] values = requireValues();
    
        int newEntryIndex = this.size; // current size, and pointer to the entry to be appended
        int newSize = newEntryIndex + 1;
        int hash = smearedHash(key);
        int mask = hashTableMask();
        int tableIndex = hash & mask;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 35.8K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

          Object test = allTests.nextElement();
          if (test instanceof AbstractTester) {
            @SuppressWarnings("unchecked")
            AbstractTester<? super G> tester = (AbstractTester<? super G>) test;
            tester.init(subjectGenerator, name, setUp, tearDown);
          }
        }
    
        return suite;
      }
    
      private TestSuite filterSuite(TestSuite suite) {
        TestSuite filtered = new TestSuite(suite.getName());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

      @ParametricNullness
      public V get(long timeout, TimeUnit unit)
          throws InterruptedException, TimeoutException, ExecutionException {
        // NOTE: if timeout < 0, remainingNanos will be < 0 and we will fall into the while(true) loop
        // at the bottom and throw a timeoutexception.
        final long timeoutNanos = unit.toNanos(timeout); // we rely on the implicit null check on unit.
        long remainingNanos = timeoutNanos;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  5. android/guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

        }
      }
    
      private interface Adder {
        int add(int a, int b);
      }
    
      private static class ForwardingArithmetic implements Arithmetic {
        private final Arithmetic arithmetic;
    
        public ForwardingArithmetic(Arithmetic arithmetic) {
          this.arithmetic = arithmetic;
        }
    
        @Override
        public int add(int a, int b) {
          return arithmetic.add(a, b);
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/JdkBackedImmutableMap.java

          }
        }
        if (duplicates != null) {
          @SuppressWarnings({"rawtypes", "unchecked"})
          Entry<K, V>[] newEntryArray = new Entry[n - dupCount];
          for (int inI = 0, outI = 0; inI < n; inI++) {
            Entry<K, V> entry = requireNonNull(entryArray[inI]);
            K key = entry.getKey();
            if (duplicates.containsKey(key)) {
              V value = duplicates.get(key);
              if (value == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 4.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/Monitor.java

       *
       * @return whether the monitor was entered
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
      public boolean enter(long time, TimeUnit unit) {
        final long timeoutNanos = toSafeNanos(time, unit);
        final ReentrantLock lock = this.lock;
        if (!fair && lock.tryLock()) {
          return true;
        }
        boolean interrupted = Thread.interrupted();
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 18:22:01 GMT 2023
    - 38.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

                .put(Integer.class, 0)
                .put(int.class, 1)
                .build();
        assertEquals(2, map.size());
    
        assertEquals(0, (int) map.getInstance(Integer.class));
        assertEquals(0, (int) map.getInstance(TypeToken.of(Integer.class)));
        assertEquals(1, (int) map.getInstance(int.class));
        assertEquals(1, (int) map.getInstance(TypeToken.of(int.class)));
      }
    
      public void testParameterizedType() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 6.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

      }
    
      private void testThreshold(
          int fileThreshold, int dataSize, boolean singleByte, boolean resetOnFinalize)
          throws IOException {
        byte[] data = newPreFilledByteArray(dataSize);
        FileBackedOutputStream out = new FileBackedOutputStream(fileThreshold, resetOnFinalize);
        ByteSource source = out.asByteSource();
        int chunk1 = Math.min(dataSize, fileThreshold);
        int chunk2 = dataSize - chunk1;
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/util/concurrent/testing/TestingExecutors.java

        }
    
        @Override
        public boolean awaitTermination(long timeout, TimeUnit unit) {
          return true;
        }
    
        @Override
        public void execute(Runnable runnable) {}
    
        @Override
        public <V> ListenableScheduledFuture<V> schedule(
            Callable<V> callable, long delay, TimeUnit unit) {
          return NeverScheduledFuture.create();
        }
    
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri May 26 22:04:00 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top