Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for islice (0.19 sec)

  1. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

      public void testSlice_constrainedRange() throws IOException {
        long size = source.read().length;
        if (size >= 2) {
          ByteSource sliced = source.slice(1, size - 2);
          assertEquals(size - 2, sliced.read().length);
          ByteSource resliced = sliced.slice(0, size - 1);
          assertTrue(sliced.contentEquals(resliced));
        }
      }
    
      private void assertExpectedBytes(byte[] readBytes) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/testdata/alice_in_wonderland.txt

      When the procession came opposite to Alice, they all stopped
    and looked at her, and the Queen said severely `Who is this?'
    She said it to the Knave of Hearts, who only bowed and smiled in reply.
    
      `Idiot!' said the Queen, tossing her head impatiently; and,
    turning to Alice, she went on, `What's your name, child?'
    
      `My name is Alice, so please your Majesty,' said Alice very
    Plain Text
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Mon Oct 29 21:35:03 GMT 2012
    - 145.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        int chunk2 = dataSize - chunk1;
    
        // Write just enough to not trip the threshold
        if (chunk1 > 0) {
          write(out, data, 0, chunk1, singleByte);
          assertTrue(ByteSource.wrap(data).slice(0, chunk1).contentEquals(source));
        }
        File file = out.getFile();
        assertNull(file);
    
        // Write data to go over the threshold
        if (chunk2 > 0) {
          if (JAVA_IO_TMPDIR.value().equals("/sdcard")) {
    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)
  4. guava-tests/test/com/google/common/util/concurrent/AbstractServiceTest.java

        assertEquals(State.RUNNING, service.state());
        service.stopAsync();
        waiter.join(LONG_TIMEOUT_MILLIS); // ensure that the await in the other thread is triggered
        assertFalse(waiter.isAlive());
      }
    
      public void testAwaitTerminated_FailedService() throws Exception {
        final ManualSwitchedService service = new ManualSwitchedService();
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 29.3K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/math/Quantiles.java

            from = partitionPoint + 1;
          }
        }
      }
    
      /**
       * Performs a partition operation on the slice of {@code array} with elements in the range [{@code
       * from}, {@code to}]. Uses the median of {@code from}, {@code to}, and the midpoint between them
       * as a pivot. Returns the index which the slice is partitioned around, i.e. if it returns {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/base/Utf8.java

       */
      public static boolean isWellFormed(byte[] bytes) {
        return isWellFormed(bytes, 0, bytes.length);
      }
    
      /**
       * Returns whether the given byte array slice is a well-formed UTF-8 byte sequence, as defined by
       * {@link #isWellFormed(byte[])}. Note that this can be false even when {@code
       * isWellFormed(bytes)} is true.
       *
       * @param bytes the input buffer
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 10 14:11:51 GMT 2023
    - 7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

      void assertThreadStaysAlive(Thread thread, long millis) {
        try {
          // No need to optimize the failing case via Thread.join.
          delay(millis);
          assertTrue(thread.isAlive());
        } catch (InterruptedException ie) {
          fail("Unexpected InterruptedException");
        }
      }
    
      /**
       * Checks that the threads do not terminate within the default millisecond delay of {@code
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/base/Strings.java

          // Default toString() behavior - see Object.toString()
          String objectToString =
              o.getClass().getName() + '@' + Integer.toHexString(System.identityHashCode(o));
          // Logger is created inline with fixed name to avoid forcing Proguard to create another class.
          Logger.getLogger("com.google.common.base.Strings")
              .log(WARNING, "Exception during lenientFormat for " + objectToString, e);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/HashBiMap.java

        }
      }
    
      private static final double LOAD_FACTOR = 1.0;
    
      /*
       * The following two arrays may *contain* nulls, but they are never *themselves* null: Even though
       * they are not initialized inline in the constructor, they are initialized from init(), which the
       * constructor calls (as does readObject()).
       */
      @SuppressWarnings("nullness:initialization.field.uninitialized") // For J2KT (see above)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 24.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

                checkEntryNotNull(key, value);
                keys[i] = key;
                values[i] = value;
              }
            } else {
              // Need to sort and check for nulls and dupes.
              // Inline the Comparator implementation rather than transforming with a Function
              // to save code size.
              Arrays.sort(
                  entryArray,
                  0,
                  size,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top