List of usage examples for java.util Collections unmodifiableSet
public static <T> Set<T> unmodifiableSet(Set<? extends T> s)
From source file:org.springframework.security.jackson2.UsernamePasswordAuthenticationTokenMixinTest.java
@Override protected ObjectMapper buildObjectMapper() { return super.buildObjectMapper() .addMixIn(Collections.unmodifiableSet(Collections.EMPTY_SET).getClass(), UnmodifiableSetMixin.class) .addMixIn(SimpleGrantedAuthority.class, SimpleGrantedAuthorityMixin.class) .addMixIn(User.class, UserMixin.class).addMixIn(UsernamePasswordAuthenticationToken.class, UsernamePasswordAuthenticationTokenMixin.class); }
From source file:com.opengamma.financial.currency.AbstractCurrencyMatrix.java
@Override public Set<Currency> getSourceCurrencies() { return Collections.unmodifiableSet(_values.keySet()); }
From source file:gaffer.user.User.java
public Set<String> getDataAuths() { return Collections.unmodifiableSet(dataAuths); }
From source file:com.opengamma.web.bundle.BundleManager.java
/** * Gets the set of all bundle IDs./* ww w.jav a 2s.com*/ * * @return the unmodifiable bundle ID set, not null */ public Set<String> getBundleIds() { return Collections.unmodifiableSet(_bundleMap.keySet()); }
From source file:de.chludwig.websec.saml2sp.security.ApplicationUser.java
protected ApplicationUser(String userId, String userName, Set<RoleId> roleIds, AuthenticationStatus authenticationStatus) { this.userId = defaultString(userId); this.userName = defaultString(userName); this.roles = (roleIds == null) ? Collections.<RoleId>emptySet() : Collections.unmodifiableSet(roleIds); this.authenticationStatus = (authenticationStatus == null) ? ANONYMOUS : authenticationStatus; }
From source file:com.zotoh.maedr.impl.UserDeviceFactory.java
/** * @return */ public Set<String> getUserDevs() { return Collections.unmodifiableSet(_devs.keySet()); }
From source file:net.sf.jasperreports.engine.analytics.data.MappedPropertyValues.java
@Override public Set<String> getPropertyNames() { return Collections.unmodifiableSet(propertyIndexes.keySet()); }
From source file:com.jayway.jsonpath.Configuration.java
public Set<Option> getOptions() { return Collections.unmodifiableSet(options); }
From source file:com.mgmtp.jfunk.data.generator.data.IndexedFields.java
public Set<FieldSet> getFieldSets(final String dataKey) { Set<FieldSet> result = fieldSetsMap.get(dataKey); if (result != null) { return Collections.unmodifiableSet(result); }//ww w.j a v a2 s . c o m return Collections.emptySet(); }
From source file:com.opengamma.financial.analytics.curve.CurveSpecification.java
public Set<CurveNodeWithIdentifier> getNodes() { return Collections.unmodifiableSet(_nodes); }