Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/io/ByteSourceAsCharSourceReadBenchmark.java

          @Override
          String read(ByteSource byteSource, Charset cs) throws IOException {
            Optional<Long> size = byteSource.sizeIfKnown();
            // if we know the size and it fits in an int
            if (size.isPresent() && size.get().longValue() == size.get().intValue()) {
              // otherwise try to presize a StringBuilder
              // it is kind of lame that we need to construct a decoder to access this value.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 5.2K bytes
    - Viewed (0)
Back to top