Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 298 for enid (0.18 sec)

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

          long remainingNanos = unit.toNanos(timeout);
          long end = System.nanoTime() + remainingNanos;
    
          while (true) {
            try {
              // CountDownLatch treats negative timeouts just like zero.
              return latch.await(remainingNanos, NANOSECONDS);
            } catch (InterruptedException e) {
              interrupted = true;
              remainingNanos = end - System.nanoTime();
            }
          }
        } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 14.4K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/DiscreteDomain.java

          }
          return result;
        }
    
        @Override
        public long distance(Long start, Long end) {
          long result = end - start;
          if (end > start && result < 0) { // overflow
            return Long.MAX_VALUE;
          }
          if (end < start && result > 0) { // underflow
            return Long.MIN_VALUE;
          }
          return result;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Bytes.java

        final byte[] array;
        final int start;
        final int end;
    
        ByteArrayAsList(byte[] array) {
          this(array, 0, array.length);
        }
    
        ByteArrayAsList(byte[] array, int start, int end) {
          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java

        assertEquals(1, (int) iter.next());
    
        try {
          iter.peek();
          fail("peek() should throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.peek();
          fail("peek() should continue to throw NoSuchElementException at end");
        } catch (NoSuchElementException expected) {
        }
    
        try {
          iter.next();
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 10:16:44 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/primitives/Floats.java

        final float[] array;
        final int start;
        final int end;
    
        FloatArrayAsList(float[] array) {
          this(array, 0, array.length);
        }
    
        FloatArrayAsList(float[] array, int start, int end) {
          this.array = array;
          this.start = start;
          this.end = end;
        }
    
        @Override
        public int size() {
          return end - start;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/RangeTest.java

        // enclosed with same end
        assertEquals(Range.closed(6, 8), range.intersection(Range.closed(6, 8)));
    
        // equal
        assertEquals(range, range.intersection(range));
    
        // enclosing with same start
        assertEquals(range, range.intersection(Range.closed(4, 10)));
    
        // enclosing with same end
        assertEquals(range, range.intersection(Range.closed(2, 8)));
    
    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)
  7. android/guava-tests/test/com/google/common/io/MultiReaderTest.java

          }
        };
      }
    
      public void testSkip() throws Exception {
        String begin = "abcde";
        String end = "fghij";
        Reader joinedReader = CharSource.concat(newCharSource(begin), newCharSource(end)).openStream();
    
        String expected = begin + end;
        assertEquals(expected.charAt(0), joinedReader.read());
        CharStreams.skipFully(joinedReader, 1);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteStreams.java

              return combineBuffers(bufs, totalLen);
            }
            off += r;
            totalLen += r;
          }
        }
    
        // read MAX_ARRAY_LEN bytes without seeing end of stream
        if (in.read() == -1) {
          // oh, there's the end of the stream
          return combineBuffers(bufs, MAX_ARRAY_LEN);
        } else {
          throw new OutOfMemoryError("input is too large to fit in a byte array");
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/net/InetAddresses.java

        for (int i = 0; i < IPV4_PART_COUNT; i++) {
          int end = ipString.indexOf(IPV4_DELIMITER, start);
          if (end == -1) {
            end = ipString.length();
          }
          try {
            bytes[i] = parseOctet(ipString, start, end);
          } catch (NumberFormatException ex) {
            return null;
          }
          start = end + 1;
        }
    
        return bytes;
      }
    
      @CheckForNull
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 44K bytes
    - Viewed (1)
  10. src/main/java/jcifs/netbios/Lmhosts.java

                                 * all other includes up to the #END_ALTERNATE tag.
                                 */
    
                                while ( ( line = br.readLine() ) != null ) {
                                    line = line.toUpperCase().trim();
                                    if ( line.startsWith("#END_ALTERNATE") ) {
                                        break;
                                    }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 6.1K bytes
    - Viewed (0)
Back to top