- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 22 for anyMatch (0.1 sec)
-
src/main/java/org/codelibs/fess/mylasta/action/FessUserBean.java
public boolean hasRole(final String role) { return stream(user.getRoleNames()).get(stream -> stream.anyMatch(s -> s.equals(role))); } public boolean hasRoles(final String[] acceptedRoles) { return stream(user.getRoleNames()) .get(stream -> stream.anyMatch(s1 -> stream(acceptedRoles).get(s3 -> s3.anyMatch(s2 -> s2.equals(s1))))); } public boolean hasGroup(final String group) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 4.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/GsaConfigParser.java
return false; } if (Arrays.stream(webProtocols).anyMatch(p -> s.startsWith(p))) { return web; } if (Arrays.stream(fileProtocols).anyMatch(p -> s.startsWith(p))) { return file; } return true;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 14.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/ProtocolHelper.java
} public boolean isValidWebProtocol(final String url) { return stream(webProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s))); } public boolean isValidFileProtocol(final String url) { return stream(fileProtocols).get(stream -> stream.anyMatch(s -> url.startsWith(s))); } public void addWebProtocol(final String protocol) { final String prefix = protocol + ":";
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Wed Jun 19 01:34:15 UTC 2024 - 7.4K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/mylasta/direction/FessProp.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:15 UTC 2024 - 87.2K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/PluginTests.java
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Mon Jul 01 02:20:48 UTC 2024 - 6.3K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/search/SearchApiTests.java
String[] keywords = query.split(" "); assertTrue(doc.entrySet().stream() .anyMatch(entry -> entry.getValue().toString().toLowerCase().contains(keywords[0].toLowerCase())), doc.toString()); assertFalse(doc.entrySet().stream() .anyMatch(entry -> entry.getValue().toString().toLowerCase().contains(keywords[2].toLowerCase())), doc.toString()); } }
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 18.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/entity/FacetQueryView.java
@PostConstruct public void init() { final String filetypeField = ComponentUtil.getFessConfig().getIndexFieldFiletype(); final Collection<String> values = queryMap.values(); if (values.stream().anyMatch(s -> s.startsWith(filetypeField))) { final ResourceBundle resources = ResourceBundle.getBundle("fess_label", Locale.ENGLISH); final String[] fileTypes = ComponentUtil.getFileTypeHelper().getTypes();
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/util/PrunedTag.java
final String value = classAttr.getNodeValue(); if (StringUtil.isNotBlank(value)) { return StreamUtil.split(value, " ").get(stream -> stream.anyMatch(s -> css.equals(s))); } } } else { final Node idAttr = node.getAttributes().getNamedItem("id"); if (idAttr != null) {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Fri Oct 11 21:11:58 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/FluentIterable.java
} /** * Returns {@code true} if any element in this fluent iterable satisfies the predicate. * * <p><b>{@code Stream} equivalent:</b> {@link Stream#anyMatch} (same). */ public final boolean anyMatch(Predicate<? super E> predicate) { return Iterables.any(getDelegate(), predicate); } /**
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/web/api/admin/backup/ApiAdminBackupAction.java
@Execute public StreamResponse get$file(final String id) { final FessConfig fessConfig = ComponentUtil.getFessConfig(); if (stream(fessConfig.getIndexBackupAllTargets()).get(stream -> stream.anyMatch(s -> s.equals(id)))) { if ("system.properties".equals(id)) { return asStream(id).contentTypeOctetStream().stream(out -> {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sat Oct 12 01:54:15 UTC 2024 - 6.1K bytes - Viewed (0)