Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for isPresent (0.19 sec)

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

        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
        Optional<Long> lengthIfKnown = source.lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          assertEquals(expected.length(), (long) lengthIfKnown.get());
        }
      }
    
      public void testReadLines_withProcessor() throws IOException {
        List<String> list =
            source.readLines(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 7.3K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CharSourceTester.java

        assertEquals(expected.length(), source.length());
      }
    
      public void testLengthIfKnown() throws IOException {
        Optional<Long> lengthIfKnown = source.lengthIfKnown();
        if (lengthIfKnown.isPresent()) {
          assertEquals(expected.length(), (long) lengthIfKnown.get());
        }
      }
    
      public void testReadLines_withProcessor() throws IOException {
        List<String> list =
            source.readLines(
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 6.8K bytes
    - Viewed (0)
Back to top