List of usage examples for java.util Collections EMPTY_SET
Set EMPTY_SET
To view the source code for java.util Collections EMPTY_SET.
Click Source Link
From source file:com.globalsight.ling.tm3.tools.CreateMultilingualTmCommand.java
@Override protected TM3Tm<?> createTm(CommandLine command) throws Exception { return getManager().createMultilingualTm(null, Collections.EMPTY_SET); }
From source file:com.globalsight.ling.tm3.tools.CreateSharedTmCommand.java
@Override protected TM3Tm<?> createTm(CommandLine command) throws Exception { String s = command.getOptionValue(STORAGE); int i = Integer.valueOf(s); return getManager().createMultilingualSharedTm(null, Collections.EMPTY_SET, i); // (Integer)command.getParsedOptionValue(STORAGE)); }
From source file:net.shopxx.BaseAttributeConverter.java
public Object convertToEntityAttribute(String dbData) { if (StringUtils.isEmpty(dbData)) { if (List.class.isAssignableFrom(javaType.getRawClass())) { return Collections.EMPTY_LIST; } else if (Set.class.isAssignableFrom(javaType.getRawClass())) { return Collections.EMPTY_SET; } else if (Map.class.isAssignableFrom(javaType.getRawClass())) { return Collections.EMPTY_MAP; } else {//from w w w . j a va2 s .co m return null; } } return JsonUtils.toObject(dbData, javaType); }
From source file:org.polymap.kaps.ui.SimplePickList.java
public SimplePickList(Composite parent, IFormEditorPageSite pageSite) { combo = pageSite.getToolkit().createCombo(parent, Collections.EMPTY_SET, SWT.READ_ONLY | SWT.SINGLE); combo.addSelectionListener(new SelectionListener() { @Override//from w ww.j a va 2s . c o m public void widgetSelected(SelectionEvent e) { String selected = combo.getText(); if (values != null) { onSelectionInternal(values.get(selected)); } } @Override public void widgetDefaultSelected(SelectionEvent e) { } }); }
From source file:org.springframework.security.jackson2.UserDeserializerTests.java
protected ObjectMapper buildObjectMapper() { return super.buildObjectMapper().addMixIn(SimpleGrantedAuthority.class, SimpleGrantedAuthorityMixin.class) .addMixIn(Collections.unmodifiableSet(Collections.EMPTY_SET).getClass(), UnmodifiableSetMixin.class) .addMixIn(User.class, UserMixin.class); }
From source file:la.alsocan.jsonshapeshifter.bindings.Binding.java
public Set<SchemaNode> getSourceNodes() { return Collections.EMPTY_SET; }
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:org.apache.nifi.authorization.user.NiFiUserDetails.java
/** * Returns the authorities that this NiFi user has. * * @return authorities/*from w w w. j a v a2 s. c om*/ */ @Override public Collection<? extends GrantedAuthority> getAuthorities() { return Collections.EMPTY_SET; }
From source file:com.bitium.confluence.saml.EmptyKeyManager.java
@Override @SuppressWarnings("unchecked") public Set<String> getAvailableCredentials() { return Collections.EMPTY_SET; }
From source file:org.slc.sli.api.criteriaGenerator.SessionRangeCalculatorTest.java
@Before public void init() { MockitoAnnotations.initMocks(this); Set<String> edOrgIds = Collections.EMPTY_SET; Mockito.when(mockEdOrgHelper.getDirectEdorgs()).thenReturn(edOrgIds); }