List of usage examples for java.util Collections emptySet
@SuppressWarnings("unchecked") public static final <T> Set<T> emptySet()
From source file:com.flipkart.flux.api.StateMachineDefinition.java
StateMachineDefinition() {
this(null, null, null, Collections.emptySet(), Collections.emptySet(), null);
}
From source file:de.tudarmstadt.ukp.dkpro.tc.features.ngram.util.NGramUtils.java
public static FrequencyDistribution<String> getAnnotationNgrams(JCas jcas, Annotation focusAnnotation, boolean lowerCaseNGrams, boolean filterPartialMatches, int minN, int maxN) { Set<String> empty = Collections.emptySet(); return getAnnotationNgrams(jcas, focusAnnotation, lowerCaseNGrams, filterPartialMatches, minN, maxN, empty); }
From source file:com.example.oauth.Authentication.java
private OAuth2Request request() { final ClientApplicationEntity clientApplication = accessTokenEntity.getClientApplication(); return new OAuth2Request(Collections.emptyMap(), Long.toHexString(clientApplication.getId()), resourceUserAuthentication.getAuthorities(), true, accessToken.getScope(), Collections.singleton(ResourceConfig.RESOURCE_ID), clientApplication.getRedirectUri(), Collections.emptySet(), Collections.emptyMap()); }
From source file:org.keycloak.adapters.elytron.KeycloakRoleDecoder.java
@Override public Set<String> decodeRoles(Attributes attributes) { Attributes.Entry realmAccess = attributes.get("realm_access"); if (realmAccess != null) { String realmAccessValue = realmAccess.get(0); try {// www . jav a 2 s .c om JsonNode jsonNode = new ObjectMapper().readTree(realmAccessValue); JsonNode roles = jsonNode.get("roles"); Set<String> roleSet = new HashSet<>(); Iterator<JsonNode> iterator = roles.iterator(); while (iterator.hasNext()) { roleSet.add(iterator.next().asText()); } return roleSet; } catch (IOException e) { e.printStackTrace(); } } return Collections.emptySet(); }
From source file:org.mitreid.multiparty.service.InMemoryResourceService.java
@Override public Collection<Resource> getAllForUser(Principal p) { if (p == null) { return Collections.emptySet(); } else {//from w w w . j a va 2 s. c o m Collection<Resource> res = resources.get(p.getName()); if (res == null) { return Collections.emptySet(); } else { return res; } } }
From source file:com.pc.dailymile.domain.UserStream.java
public Set<Entry> getEntries() { if (entries == null) { return Collections.emptySet(); }/* w w w. j a v a 2 s . c o m*/ return new TreeSet<Entry>(entries); }
From source file:org.eclipse.virgo.ide.manifest.internal.core.validation.BundleManifestValidator.java
/** * {@inheritDoc} */ public Set<IResource> deriveResources(Object object) { return Collections.emptySet(); }
From source file:org.mitre.openid.connect.service.impl.DummyResourceSetService.java
@Override public Collection<ResourceSet> getAllForOwnerAndClient(String owner, String authClientId) { return Collections.emptySet(); }
From source file:io.druid.query.aggregation.datasketches.theta.SketchConstantPostAggregator.java
@Override public Set<String> getDependentFields() { return Collections.emptySet(); }