Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 214 for smart (0.17 sec)

  1. android/guava/src/com/google/common/net/InetAddresses.java

          // Iterate through the parts of the ip string.
          // Invariant: start is always the beginning of a hextet, or the second ':' of the skip
          // sequence "::"
          int start = 0;
          if (ipString.charAt(0) == IPV6_DELIMITER) {
            start = 1;
          }
          while (start < ipString.length()) {
            int end = ipString.indexOf(IPV6_DELIMITER, start);
            if (end == -1) {
              end = ipString.length();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  2. guava-tests/test/com/google/common/collect/RangeTest.java

        Range<Integer> closedRange = Range.closed(4, 8);
    
        // first range open end, second range open start
        assertEquals(Range.closed(2, 4), Range.lessThan(2).gap(openRange));
        assertEquals(Range.closed(2, 4), openRange.gap(Range.lessThan(2)));
    
        // first range closed end, second range open start
        assertEquals(Range.openClosed(2, 4), Range.atMost(2).gap(openRange));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 24.1K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/util/concurrent/testing/AbstractListenableFutureTest.java

        // get called correctly.
        for (int i = 0; i < 20; i++) {
    
          // Right in the middle start up a thread to close the latch.
          if (i == 10) {
            new Thread(() -> latch.countDown()).start();
          }
    
          future.addListener(listenerLatch::countDown, exec);
        }
    
        assertSame(Boolean.TRUE, future.get());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 18:30:30 GMT 2023
    - 6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

              notifyStarted();
            }
          }.start();
        }
    
        @Override
        protected void doStop() {
          new Thread() {
            @Override
            public void run() {
              Uninterruptibles.sleepUninterruptibly(delay, TimeUnit.MILLISECONDS);
              notifyStopped();
            }
          }.start();
        }
      }
    
      private static class FailStartService extends NoOpService {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 02 17:20:27 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/JdkPattern.java

          return matcher.replaceAll(replacement);
        }
    
        @Override
        public int end() {
          return matcher.end();
        }
    
        @Override
        public int start() {
          return matcher.start();
        }
      }
    
      private static final long serialVersionUID = 0;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 2.2K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/DiscreteDomainTest.java

          return DELEGATE.previous(value);
        }
    
        // Do *not* override offset() to delegate: We want to test the default implementation.
    
        @Override
        public long distance(Integer start, Integer end) {
          return DELEGATE.distance(start, end);
        }
    
        @Override
        public Integer minValue() {
          return DELEGATE.minValue();
        }
    
        @Override
        public Integer maxValue() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.6K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/TrustedListenableFutureTaskTest.java

                    try {
                      task.run();
                    } finally {
                      exitLatch.countDown();
                    }
                  }
                });
        thread.start();
        enterLatch.await();
        assertFalse(task.isDone());
        task.cancel(true);
        assertTrue(task.isDone());
        assertTrue(task.isCancelled());
        assertTrue(task.wasInterrupted());
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/CycleDetectingLockFactoryTest.java

        LockingThread thread = new LockingThread(lockA);
        thread.start();
    
        thread.waitUntilHoldingLock();
        assertFalse(lockA.tryLock());
    
        thread.releaseLockAndFinish();
        assertTrue(lockA.tryLock());
      }
    
      public void testReentrantWriteLock_tryLock() throws Exception {
        LockingThread thread = new LockingThread(writeLockA);
        thread.start();
    
        thread.waitUntilHoldingLock();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.1K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/base/JoinerTest.java

          return 3;
        }
    
        @Override
        public char charAt(int index) {
          return "foo".charAt(index);
        }
    
        @Override
        public CharSequence subSequence(int start, int end) {
          return "foo".subSequence(start, end);
        }
    
        @Override
        public String toString() {
          throw new AssertionFailedError("shouldn't be invoked");
        }
      }
    
      // Don't do this.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

       * source, and finally additional bytes are appended to the source before the stream is read.
       *
       * <p>Without special handling, it's possible to have reads of the open stream start <i>before</i>
       * the offset at which the slice is supposed to start.
       */
      // TODO(cgdecker): Maybe add a test for this to ByteSourceTester
      public void testSlice_appendingAfterSlicing() throws IOException {
        // Source of length 5
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
Back to top