- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 168 for ifPresent (0.1 sec)
-
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(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 7.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/sso/SsoAction.java
// ============== @Execute public ActionResponse index() { if (fessLoginAssist.getSavedUserBean().isPresent()) { return redirect(RootAction.class); } final SsoManager ssoManager = ComponentUtil.getSsoManager(); final LoginCredential loginCredential = ssoManager.getLoginCredential();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.1K bytes - Viewed (0) -
mockwebserver-junit5/src/main/kotlin/mockwebserver3/junit5/internal/MockWebServerExtension.kt
parameterContext: ParameterContext, extensionContext: ExtensionContext, ): Any { val nameAnnotation = parameterContext.findAnnotation(MockWebServerInstance::class.java) val name = if (nameAnnotation.isPresent) { nameAnnotation.get().name } else { defaultName } return extensionContext.resource.server(name) } /** Start the servers passed in as test method parameters. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 11 12:12:36 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/ByteSourceTester.java
assertEquals(expected.length, source.size()); } public void testSizeIfKnown() throws IOException { Optional<Long> sizeIfKnown = source.sizeIfKnown(); if (sizeIfKnown.isPresent()) { assertEquals(expected.length, (long) sizeIfKnown.get()); } } public void testContentEquals() throws IOException { assertTrue( source.contentEquals(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 8.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
&& (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0) .transform(Method::getDeclaringClass); if (!supersWithPackagePrivateWriteReplace.isPresent()) { continue; } assertWithMessage( "To help optimizers, any class that inherits a package-private writeReplace() method" + " should override that method.\n"
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 18:53:31 UTC 2024 - 5.2K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java
for (ModelParser parser : modelParsers) { try { Optional<Model> model = parser.locateAndParse(projectDirectory, options); if (model.isPresent()) { return model.get().withPomFile(pomFile); } } catch (ModelParserException e) { exceptions.add(e); } }
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 8.5K bytes - Viewed (0) -
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.
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 5.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/storage/ApiAdminStorageAction.java
// POST /api/admin/storage/list/{id} @Execute public JsonResponse<ApiResult> list(final OptionalThing<String> id) { final List<Map<String, Object>> list = getFileItems(id.isPresent() ? decodePath(id.get()) : null); try { return asJson(new ApiResult.ApiStorageResponse().items(list).status(ApiResult.Status.OK).result()); } catch (final ResultOffsetExceededException e) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/WriteReplaceOverridesTest.java
&& (m.getModifiers() & (PUBLIC | PROTECTED | PRIVATE)) == 0) .transform(Method::getDeclaringClass); if (!supersWithPackagePrivateWriteReplace.isPresent()) { continue; } assertWithMessage( "To help optimizers, any class that inherits a package-private writeReplace() method" + " should override that method.\n"
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Jul 24 18:53:31 UTC 2024 - 5.2K bytes - Viewed (0) -
guava/src/com/google/common/collect/Streams.java
* otherwise returns an empty stream. */ public static <T> Stream<T> stream(com.google.common.base.Optional<T> optional) { return optional.isPresent() ? Stream.of(optional.get()) : Stream.empty(); } /** * If a value is present in {@code optional}, returns a stream containing only that element, * otherwise returns an empty stream. *
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 31 14:20:11 UTC 2024 - 36.8K bytes - Viewed (0)