@Nullable @ReturnsMutableCopy public String [] getParameterValues (@Nonnull final String sName) { ValueEnforcer.notNull (sName, "Name"); return m_aParameters.getAllParamValues (sName).toArray (new String [0]); }
/** * @return A list of the IDs of the supported TLS versions in the correct order. * May be <code>null</code> if no TLS versions are defined. */ @Nullable default String [] getAllTLSVersionIDsAsArray () { final ICommonsList <String> aList = getAllTLSVersionIDs (); return aList.isEmpty () ? null : aList.toArray (new String [aList.size ()]); }
/** * @return All cipher suites in the correct order. May be <code>null</code> if * no cipher suite is defined. */ @Nullable default String [] getAllCipherSuitesAsArray () { final ICommonsList <String> aList = getAllCipherSuites (); return aList.isEmpty () ? null : aList.toArray (new String [aList.size ()]); } }
@Nullable @ReturnsMutableCopy public String [] getAllCipherSuitesAsArray () { if (m_aCipherSuites.isEmpty ()) return null; return m_aCipherSuites.toArray (new String [m_aCipherSuites.size ()]); }
@Nullable @ReturnsMutableCopy public String [] getAllTLSVersionIDsAsArray () { if (m_aTLSVersions.isEmpty ()) return null; return getAllTLSVersionIDs ().toArray (new String [m_aTLSVersions.size ()]); }
public String [] getStringArrayProperty (final String name, final String [] def) { final String vals = getStringProperty (name); if (vals == null) return def; final StringTokenizer stok = new StringTokenizer (vals, ","); final ICommonsList <String> strs = new CommonsArrayList <> (); try { while (stok.hasMoreTokens ()) { strs.add (stok.nextToken ().trim ()); } return strs.toArray (new String [strs.size ()]); } catch (final Exception e) { return def; } }
ret = aAddrs.toArray (new InetAddress [aAddrs.size ()]);
return new MatrixInt (v.toArray (new int [nRows] []));
return new Matrix (v.toArray (new double [nRows] []));
aScanner.setBasedir (aBaseDirData.getBaseDir ()); if (aIncludes.isNotEmpty ()) aScanner.setIncludes (aIncludes.toArray (new String [0])); aScanner.setCaseSensitive (true); aScanner.scan ();