Searched refs:sizeIfKnown (Results 1 – 10 of 10) sorted by relevance
138 Optional<Long> sizeIfKnown = sizeIfKnown(); in isEmpty() local139 if (sizeIfKnown.isPresent()) { in isEmpty()140 return sizeIfKnown.get() == 0L; in isEmpty()168 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource192 Optional<Long> sizeIfKnown = sizeIfKnown(); in size() local193 if (sizeIfKnown.isPresent()) { in size()194 return sizeIfKnown.get(); in size()283 Optional<Long> size = sizeIfKnown(); in read()544 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in ByteSource.SlicedByteSource545 Optional<Long> optionalUnslicedSize = ByteSource.this.sizeIfKnown(); in sizeIfKnown()[all …]
134 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in Files.FileByteSource
124 public Optional<Long> sizeIfKnown() { in sizeIfKnown() method in MoreFiles.PathByteSource382 long len1 = source1.sizeIfKnown().or(0L);383 long len2 = source2.sizeIfKnown().or(0L);
177 Optional<Long> sizeIfKnown = source.sizeIfKnown(); in testSizeIfKnown() local178 if (sizeIfKnown.isPresent()) { in testSizeIfKnown()179 assertEquals(expected.length, (long) sizeIfKnown.get()); in testSizeIfKnown()
137 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofDirectory()156 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofSymlinkToDirectory()175 assertEquals(10L, (long) source.sizeIfKnown().get()); in testByteSource_size_ofSymlinkToRegularFile()189 assertThat(source.sizeIfKnown()).isAbsent(); in testByteSource_size_ofSymlinkToRegularFile_nofollowLinks()
58 Optional<Long> size = byteSource.sizeIfKnown(); in read()