- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 1,126 for isInstance (0.08 sec)
-
src/main/java/org/codelibs/fess/app/service/StopwordsService.java
}).orElse(Collections.emptyList()); } public OptionalEntity<StopwordsFile> getStopwordsFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(StopwordsFile.class::isInstance) .map(file -> OptionalEntity.of((StopwordsFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<StopwordsItem> getStopwordsItem(final String dictId, final long id) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/SynonymService.java
}).orElse(Collections.emptyList()); } public OptionalEntity<SynonymFile> getSynonymFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(SynonymFile.class::isInstance) .map(file -> OptionalEntity.of((SynonymFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<SynonymItem> getSynonymItem(final String dictId, final long id) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/SimpleLookup.java
public SimpleLookup(List<Object> objects) { this.objects = objects; } @Override public <T> T lookup(Class<T> type) { return objects.stream() .filter(type::isInstance) .map(type::cast) .findAny() .orElseThrow(() -> new LookupException("No service of type " + type)); } @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 2K bytes - Viewed (0) -
tests/test_custom_route_class.py
assert response.status_code == expected_status assert response.json() == expected_response def test_route_classes(): routes = {} for r in app.router.routes: assert isinstance(r, Route) routes[r.path] = r assert getattr(routes["/a/"], "x_type") == "A" # noqa: B009 assert getattr(routes["/a/b/"], "x_type") == "B" # noqa: B009
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Fri Jun 30 18:25:16 UTC 2023 - 3.1K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
* This does perform a little more work than necessary, so another option is to insert an * unchecked cast at some later point: * * <pre> * {@code @SuppressWarnings("unchecked") // safe because of ::isInstance check * ImmutableList<NewType> result = * (ImmutableList) stream.filter(NewType.class::isInstance).collect(toImmutableList());} * </pre>
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Sep 24 13:42:31 UTC 2024 - 35.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/CharMappingService.java
}).orElse(Collections.emptyList()); } public OptionalEntity<CharMappingFile> getCharMappingFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(CharMappingFile.class::isInstance) .map(file -> OptionalEntity.of((CharMappingFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<CharMappingItem> getCharMappingItem(final String dictId, final long id) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.2K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/ProtwordsService.java
}).orElse(Collections.emptyList()); } public OptionalEntity<ProtwordsFile> getProtwordsFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(ProtwordsFile.class::isInstance) .map(file -> OptionalEntity.of((ProtwordsFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<ProtwordsItem> getProtwordsItem(final String dictId, final long id) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/StemmerOverrideService.java
} public OptionalEntity<StemmerOverrideFile> getStemmerOverrideFile(final String dictId) { return dictionaryManager.getDictionaryFile(dictId).filter(StemmerOverrideFile.class::isInstance) .map(file -> OptionalEntity.of((StemmerOverrideFile) file)).orElse(OptionalEntity.empty()); } public OptionalEntity<StemmerOverrideItem> getStemmerOverrideItem(final String dictId, final long id) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.3K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt
*/ fun <T : CallEvent> removeUpToEvent(eventClass: Class<T>): T { val fullEventSequence = eventSequence.toList() try { while (true) { val event = takeEvent() if (eventClass.isInstance(event)) { return eventClass.cast(event) } } } catch (e: NoSuchElementException) { throw AssertionError("full event sequence: $fullEventSequence", e) } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/RecordingConnectionListener.kt
*/ fun <T : ConnectionEvent> removeUpToEvent(eventClass: Class<T>): T { val fullEventSequence = eventSequence.toList() try { while (true) { val event = takeEvent() if (eventClass.isInstance(event)) { return eventClass.cast(event) } } } catch (e: NoSuchElementException) { throw AssertionError("full event sequence: $fullEventSequence", e) } } /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 5.6K bytes - Viewed (0)