Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for alice (0.16 sec)

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

        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
        LineProcessor<List<String>> collectAndLowercaseAndTrim =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/ResourcesTest.java

        assertEquals(ImmutableList.of(I18N), Resources.readLines(resource, Charsets.UTF_8));
      }
    
      public void testReadLines_withLineProcessor() throws IOException {
        URL resource = getClass().getResource("testdata/alice_in_wonderland.txt");
        LineProcessor<List<String>> collectAndLowercaseAndTrim =
            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Files.java

       *
       * <p>Example: {@code Files.fileTraverser().depthFirstPreOrder(new File("/"))} may return files
       * with the following paths: {@code ["/", "/etc", "/etc/config.txt", "/etc/fonts", "/home",
       * "/home/alice", ...]}
       *
       * @since 23.5
       */
      public static Traverser<File> fileTraverser() {
        return Traverser.forTree(FILE_TREE);
      }
    
      private static final SuccessorsFunction<File> FILE_TREE =
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 33.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

        assertThrows(
            "expected IllegalArgumentException for call to slice with offset -1: " + source,
            IllegalArgumentException.class,
            () -> source.slice(-1, 0));
    
        assertThrows(
            "expected IllegalArgumentException for call to slice with length -1: " + source,
            IllegalArgumentException.class,
            () -> source.slice(0, -1));
      }
    
    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)
  5. 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)
  6. 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)
  7. guava-tests/test/com/google/common/io/ByteSourceTester.java

        assertThrows(
            "expected IllegalArgumentException for call to slice with offset -1: " + source,
            IllegalArgumentException.class,
            () -> source.slice(-1, 0));
    
        assertThrows(
            "expected IllegalArgumentException for call to slice with length -1: " + source,
            IllegalArgumentException.class,
            () -> source.slice(0, -1));
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/io/ByteSourceTest.java

       * 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
        AppendableByteSource source = new AppendableByteSource(newPreFilledByteArray(5));
    
        // Slice it starting at offset 10.
        ByteSource slice = source.slice(10, 5);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

       * 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
        AppendableByteSource source = new AppendableByteSource(newPreFilledByteArray(5));
    
        // Slice it starting at offset 10.
        ByteSource slice = source.slice(10, 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)
  10. android/guava/src/com/google/common/io/ByteSource.java

      }
    
      /**
       * Returns a view of a slice of this byte source that is at most {@code length} bytes long
       * starting at the given {@code offset}. If {@code offset} is greater than the size of this
       * source, the returned source will be empty. If {@code offset + length} is greater than the size
       * of this source, the returned source will contain the slice starting at {@code offset} and
       * ending at the end of this source.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
Back to top