public void setRequiredRoleIDs (@Nullable final Collection <String> aRequiredRoleIDs) { m_aRequiredRoleIDs = aRequiredRoleIDs == null ? null : new CommonsHashSet <> (aRequiredRoleIDs); }
@Override @CodingStyleguideUnaware public Set <QName> getHeaders () { return new CommonsHashSet <> (WSSE_HEADER_NAME); }
/** * @see com.helger.quartz.spi.IJobStore#getPausedTriggerGroups() */ public ICommonsSet <String> getPausedTriggerGroups () throws JobPersistenceException { final ICommonsSet <String> set = new CommonsHashSet <> (); set.addAll (m_aPausedTriggerGroups); return set; }
/** * Set the trigger to fire on the given days of the week. * * @param onDaysOfWeek * a variable length list of Integers representing the days of the * week, per the values 1-7 as defined by {@link Calendar#SUNDAY} - * {@link Calendar#SATURDAY}. * @return the updated DailyTimeIntervalScheduleBuilder */ public DailyTimeIntervalScheduleBuilder onDaysOfTheWeek (final DayOfWeek... onDaysOfWeek) { return onDaysOfTheWeek (new CommonsHashSet <> (onDaysOfWeek)); }
public MockFile (@Nonnull final IReadableResource aResource, @Nonnull final VESID aVESID, @Nullable final Set <String> aExpectedErrorIDs) { m_aResource = ValueEnforcer.notNull (aResource, "Resource"); m_aVESID = ValueEnforcer.notNull (aVESID, "VESID"); m_aExpectedErrorIDs = new CommonsHashSet <> (aExpectedErrorIDs); }
/** * Private constructor for {@link #getClone(ECSSProperty)} * * @param eProp * Property to use * @param eVendorPrefix * The vendor prefix to be used. May be <code>null</code>. * @param aCustomizer * Customizer to use. * @param aEnumValues * Enum values to use. May neither be <code>null</code> nor empty. */ private CSSPropertyEnum (@Nonnull final ECSSProperty eProp, @Nullable final ECSSVendorPrefix eVendorPrefix, @Nullable final ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty final Set <String> aEnumValues) { super (eProp, eVendorPrefix, aCustomizer); m_aEnumValues = new CommonsHashSet<> (aEnumValues); }
public DataTablesPluginClientSortingDate (@Nonnull @Nonempty final Set <EDTColType> aDateTimeTypes) { super (PLUGIN_NAME); ValueEnforcer.notEmptyNoNullValue (aDateTimeTypes, "DateTimeTypes"); m_aDateTimeTypes = new CommonsHashSet <> (aDateTimeTypes); }
@Override public ICommonsSet <String> getAllPartnershipNames () { return m_aPartnerships.distinct (NAME_KEY, String.class).into (new CommonsHashSet <> ()); }
public CSSPropertyEnum (@Nonnull final ECSSProperty eProp, @Nullable final ECSSVendorPrefix eVendorPrefix, @Nullable final ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty final String... aEnumValues) { super (eProp, eVendorPrefix, aCustomizer); ValueEnforcer.notEmptyNoNullValue (aEnumValues, "EnumValues"); m_aEnumValues = new CommonsHashSet<> (aEnumValues.length); for (final String sPotentialValue : aEnumValues) { if (StringHelper.hasNoText (sPotentialValue)) throw new IllegalArgumentException ("At least one enumeration value is empty"); m_aEnumValues.add (sPotentialValue); } }
public CSSPropertyEnum (@Nonnull final ECSSProperty eProp, @Nullable final ECSSVendorPrefix eVendorPrefix, @Nullable final ICSSPropertyCustomizer aCustomizer, @Nonnull @Nonempty final Iterable <String> aEnumValues) { super (eProp, eVendorPrefix, aCustomizer); ValueEnforcer.notEmptyNoNullValue (aEnumValues, "EnumValues"); m_aEnumValues = new CommonsHashSet<> (); for (final String sPotentialValue : aEnumValues) { if (StringHelper.hasNoText (sPotentialValue)) throw new IllegalArgumentException ("At least one enumeration value is empty"); m_aEnumValues.add (sPotentialValue); } }
@Nonnull private MapBasedNamespaceContext _addMapping (@Nonnull final String sPrefix, @Nonnull final String sNamespaceURI, final boolean bAllowOverwrite) { ValueEnforcer.notNull (sPrefix, "Prefix"); ValueEnforcer.notNull (sNamespaceURI, "NamespaceURI"); if (!bAllowOverwrite && m_aPrefix2NS.containsKey (sPrefix)) throw new IllegalArgumentException ("The prefix '" + sPrefix + "' is already registered to '" + m_aPrefix2NS.get (sPrefix) + "'!"); if (sPrefix.equals (XMLConstants.DEFAULT_NS_PREFIX)) m_sDefaultNamespaceURI = sNamespaceURI; m_aPrefix2NS.put (sPrefix, sNamespaceURI); m_aNS2Prefix.computeIfAbsent (sNamespaceURI, x -> new CommonsHashSet <> ()).add (sPrefix); return this; }
public static boolean isSupportedCipherSuiteInSSLContext (@Nonnull final ETLSVersion [] aTLSVersions, @Nonnull @Nonempty final String sCipherSuite) { // Check if the cipher suite is available for any TLS version for (final ETLSVersion eTLSVersion : aTLSVersions) { final SSLContext aSSLCtx = TLS_CONTEXT_MAP.get (eTLSVersion); if (aSSLCtx != null) { final SSLParameters aParams = aSSLCtx.getSupportedSSLParameters (); final ICommonsSet <String> aCipherSuites = new CommonsHashSet <> (aParams.getCipherSuites ()); if (aCipherSuites.contains (sCipherSuite)) return true; } } return false; }
if (grpMap != null) outList = new CommonsHashSet <> (); for (final JobWrapper jw : grpMap.values ()) if (jw != null) outList = new CommonsHashSet <> (); return outList == null ? new CommonsHashSet <> () : outList;
if (grpMap != null) outList = new CommonsHashSet <> (); outList = new CommonsHashSet <> (); return outList == null ? new CommonsHashSet <> () : outList;
final ICommonsSet <String> resumedGroups = new CommonsHashSet <> (); synchronized (m_aLock)
final ICommonsSet <X509Certificate> aCertSet = new CommonsHashSet <> (); for (final WSSecurityEngineResult aResult : aResults)
final ICommonsSet <JobKey> acquiredJobKeysForNoConcurrentExec = new CommonsHashSet <> (); final ICommonsSet <TriggerWrapper> excludedTriggers = new CommonsHashSet <> (); long batchEnd = noLaterThan;
final ICommonsSet <String> groups = new CommonsHashSet <> ();
aPropsTable.addHeaderRow ().addCells (EText.MSG_KEY.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); final ICommonsSet <String> aKeys = new CommonsHashSet <> (); for (final Object aName : aSecurityProvider.keySet ()) aKeys.add ((String) aName);
aPropsTable.addHeaderRow ().addCells (EText.MSG_KEY.getDisplayText (aDisplayLocale), EText.MSG_VALUE.getDisplayText (aDisplayLocale)); final ICommonsSet <String> aKeys = new CommonsHashSet <> (); for (final Object aName : aSecurityProvider.keySet ()) aKeys.add ((String) aName);